<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Compile error]]></title><description><![CDATA[<p dir="auto">Hi, I was super happy to find your library for the TH02. I just got a few of the sensors and I’m testing them right now. However, I do get a compile error indicating something going wrong with the TH02 lib.. but I’m not sure. Do you see anything out of the ordinary here…? Other I2C sensors I have works fine using the Wire lib. Grateful for all you work and hoping to be able to use it!</p>
<p dir="auto">Here is a verbose output from the compiler, compiling the example from your library, the error is in bold at the bottom:</p>
<p dir="auto">Arduino: 1.5.6-r2 (Mac OS X), Board: “Arduino Uno”</p>
<p dir="auto">Build options changed, rebuilding all<br />
Using library Wire in folder: /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire (legacy)<br />
Using library TH02 in folder: /Users/Bo/Documents/Arduino/libraries/TH02 (legacy)</p>
<p dir="auto">/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/variants/standard -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/Johannes/Documents/Arduino/libraries/TH02 /var/folders/aE/aE8AHBi2FKulZG-bTdnaYU+++TI/-Tmp-/build1193856155966205342.tmp/GetTempHum_test.cpp -o /var/folders/aE/aE8AHBi2FKulZG-bTdnaYU+++TI/-Tmp-/build1193856155966205342.tmp/GetTempHum_test.cpp.o<br />
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/variants/standard -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/Johannes/Documents/Arduino/libraries/TH02 -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire/utility /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire/Wire.cpp -o /var/folders/aE/aE8AHBi2FKulZG-bTdnaYU+++TI/-Tmp-/build1193856155966205342.tmp/Wire/Wire.cpp.o<br />
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/variants/standard -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/Johannes/Documents/Arduino/libraries/TH02 -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire/utility /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire/utility/twi.c -o /var/folders/aE/aE8AHBi2FKulZG-bTdnaYU+++TI/-Tmp-/build1193856155966205342.tmp/Wire/utility/twi.c.o<br />
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=156 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/variants/standard -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire -I/Users/Bo/Documents/Arduino/libraries/TH02 -I/Users/Bo/Documents/Arduino/libraries/TH02/utility /Users/Bo/Documents/Arduino/libraries/TH02/TH02.cpp -o /var/folders/aE/aE8AHBi2FKulZG-bTdnaYU+++TI/-Tmp-/build1193856155966205342.tmp/TH02/TH02.cpp.o<br />
/Users/Bo/Documents/Arduino/libraries/TH02/TH02.cpp: In member function ‘uint8_t TH02::readRegister(uint8_t, uint8_t*)':<br />
/Users/Bo/Documents/Arduino/libraries/TH02/TH02.cpp:85: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:<br />
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire/Wire.h:58: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)<br />
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/Wire/Wire.h:56: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)</p>
]]></description><link>https://community.ch2i.eu/topic/47/compile-error</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 06:50:07 GMT</lastBuildDate><atom:link href="https://community.ch2i.eu/topic/47.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Apr 2015 19:18:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compile error on Sat, 18 Apr 2015 01:01:56 GMT]]></title><description><![CDATA[<p dir="auto">Arnewiig,</p>
<p dir="auto">I’ve updated the repo, would you mind trying with the fixed version and let me know please ?</p>
<p dir="auto">Thanks</p>
<p dir="auto">Charles</p>
]]></description><link>https://community.ch2i.eu/post/79</link><guid isPermaLink="true">https://community.ch2i.eu/post/79</guid><dc:creator><![CDATA[Charles]]></dc:creator><pubDate>Sat, 18 Apr 2015 01:01:56 GMT</pubDate></item><item><title><![CDATA[Reply to Compile error on Fri, 17 Apr 2015 21:08:56 GMT]]></title><description><![CDATA[<p dir="auto">fyi. this compile error is on a mac os x. it works fine from my windows 7 PC.</p>
]]></description><link>https://community.ch2i.eu/post/78</link><guid isPermaLink="true">https://community.ch2i.eu/post/78</guid><dc:creator><![CDATA[arnewiig]]></dc:creator><pubDate>Fri, 17 Apr 2015 21:08:56 GMT</pubDate></item></channel></rss>