SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By SerialBuilder
#191040
Hi all,
I have a problem with the BME280 Library.

It compiles just fine using the standard arduino IDE but when it comes to Visual Studio (with the vMicro addon) with the error.
Code: Select all
sparkfunBME280.cpp.o:In function `loop
sparkfunBME280.ino:undefined reference to `BME280  readTempC()
sparkfunBME280.ino:undefined reference to `BME280  readTempF()
sparkfunBME280.ino:undefined reference to `BME280  readFloatPressure()
sparkfunBME280.ino:undefined reference to `BME280  readFloatAltitudeMeters()
sparkfunBME280.ino:undefined reference to `BME280  readFloatAltitudeFeet()
sparkfunBME280.ino:undefined reference to `BME280  readFloatHumidity()
sparkfunBME280.cpp.o:In function `__static_initialization_and_destruction_0
sparkfunBME280.ino:undefined reference to `BME280  BME280()
collect2.exe*:error: ld returned 1 exit status
I have been using VS for a while now and have compiled and uploaded all my .ino's with no problems.
It's got me stumped.