DallasTemperature Library (Compiling Issue)

This worked until I changed from 0.4.8 to 0.5.3 now I get:

/src/DallasTemperature.cpp:97:6: error: prototype for 'void DallasTemperature::readScratchPad(const uint8_t*, uint8_t*)' does not match any in class 'DallasTemperature'
 void DallasTemperature::readScratchPad(const uint8_t* deviceAddress, uint8_t* scratchPad)
      ^
In file included from /src/DallasTemperature.cpp:12:0:
/src/DallasTemperature.h:95:10: error: candidate is: bool DallasTemperature::readScratchPad(const uint8_t*, uint8_t*)
     bool readScratchPad(const uint8_t*, uint8_t*);
          ^
/src/DallasTemperature.cpp:210:6: error: prototype for 'bool DallasTemperature::setResolution(const uint8_t*, uint8_t)' does not match any in class 'DallasTemperature'
 bool DallasTemperature::setResolution(const uint8_t* deviceAddress, uint8_t newResolution)
      ^
In file included from /src/DallasTemperature.cpp:12:0:
/src/DallasTemperature.h:113:10: error: candidates are: bool DallasTemperature::setResolution(const uint8_t*, uint8_t, bool)
     bool setResolution(const uint8_t*, uint8_t, bool skipGlobalBitResolutionCalculation = false);
          ^
/src/DallasTemperature.cpp:197:6: error:                 void DallasTemperature::setResolution(uint8_t)
 void DallasTemperature::setResolution(uint8_t newResolution)
      ^
make[1]: *** [../build/target/user/platform-10src/DallasTemperature.o] Error 1
make: *** [user] Error 2

Is there a special reason you are not using a more recent system version like 0.6.1 or 0.6.2-rc.1?

What version of the library are you using?
Can you post a link to the library, since it’s not the one hosted by Particle
https://build.particle.io/libs/spark-dallas-temperature/0.0.5

The error message suggests the prototypes declared in the .h file don’t match the implementation in the .cpp file.

I have it back working now. Oddly the problem was associated with Serial4.h I’ll have to work on that, when I remed it out the compile is OK. I’ll update that Electron now. I have stayed back at 0.4.8 because that is where the program was working, until I made a change that forced me to update. Any idea on what to do about Serial4.h that doesn’t work now?

I doubt the problem really has any immediate connection with Serial4.h.
The error messages do point to the particular issue I mentioned and that needs to be addressed.

I agree it’s not an immediate connection with Serial4.h however Serial4.h has been a problem all along and the reason I stayed on 0.4.8
Has Serial4.h been updated, does anyone have it working on 0.5.3 or above?

Could you describe the issues you saw with Serial4?
Why not just test the most recent version for your particular needs?

Went looking for a different version of Serial4.h this one works, thanks.

#ifndef __LIB_SERIAL4_H
#define __LIB_SERIAL4_H
#include "spark_wiring_usartserial.h"
#if Wiring_Serial4
// instantiate Serial4
static Ring_Buffer serial4_rx_buffer;
static Ring_Buffer serial4_tx_buffer;
USARTSerial& __fetch_global_Serial4()
{
	static USARTSerial serial4(HAL_USART_SERIAL4, &serial4_rx_buffer, &serial4_tx_buffer);
	return serial4;
}
void serialEventRun4()
{
    __handleSerialEvent(Serial4, serialEvent4);
}
#endif
#endif