conflicting return type specified for 'virtual void UartPlug::write(byte)' when compiling

I wanted to add a temperature probe to my emonTx. So I soldered up a Dallas DS18B20 this morning.

I have been trying to compile "emonTx_3CT_Voltage_Temperature_pulse.ino" or "emonTx_onewire_temperature_Example.ino", but I keep getting the error.

In file included from emonTx_onewire_temperature_Example.cpp:24:
/Users/marketaylor/Documents/Arduino/libraries/Ports/Ports.h:288: error: conflicting return type specified for 'virtual void UartPlug::write(byte)'
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'

Any ideas?

 

Thanks

Mark

Larsjo's picture

Re: conflicting return type specified for 'virtual void UartPlug::write(byte)' when compiling

 Are you using ver. 1.0 or 0.22

and did you get the latest lib. for dallas.

 

Had the same problem first, but getting the latest libs. and using arduino ver. 1.0 it solved the problem.

MetPhoto's picture

Re: conflicting return type specified for 'virtual void UartPlug::write(byte)' when compiling

 I think I have fixed it now. I had an "Ports" folder, but then downloaded and added a "Jeelib" folder. I think the two were clashing.

I am using Arduino 1.0.

[Is it just me, but are Arduino libraries just nightmare-ish to deal with. I have been playing with Arduino for a long time now and only just realised that it does not matter what the library folder is named inside libraries, Arduino will find what it needs somehow. Is this stuff written down anywhere?]

Larsjo's picture

Re: conflicting return type specified for 'virtual void UartPlug::write(byte)' when compiling

 only been working with arduino for 3 md. And your are right. Its a steap learning and when ever you think you got it right the ver. change or the libs so.

 

Glad to hear you got it fixed. remember to tell us how its working out

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.