adafruit / Adafruit_BMP280_Library

Arduino Library for BMP280 sensors
250 stars 187 forks source link

Unable to compile in Arduino IDE for WAVGAT UNO R3 #42

Closed phelipebf closed 3 years ago

phelipebf commented 3 years ago

Tried to compile the example sketches (bmp280test.ino and bmp280_sensortest.ino) with the WAVGAT UNO R3 board and received the error:

Warning: platform.txt from core 'Arduino AVR Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
libraries\Adafruit_BMP280_Library\Adafruit_BMP280.cpp.o: In function `Adafruit_BMP280_Temp::~Adafruit_BMP280_Temp()':
C:\Users\metta\OneDrive\Documentos\Arduino\libraries\Adafruit_BMP280_Library/Adafruit_BMP280.cpp:435: undefined reference to `operator delete(void*, unsigned int)'
libraries\Adafruit_BMP280_Library\Adafruit_BMP280.cpp.o: In function `Adafruit_BMP280_Pressure::~Adafruit_BMP280_Pressure()':
C:\Users\metta\OneDrive\Documentos\Arduino\libraries\Adafruit_BMP280_Library/Adafruit_BMP280.cpp:435: undefined reference to `operator delete(void*, unsigned int)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board WAVGAT UNO R3

The same occurs with WAVGAT NANO 3.0.

All works fine with Arduino Uno and Arduino Nano.

phelipebf commented 3 years ago

After some research and tests I found that the platform.txt compilation parameters from Wavgat driver seems a bit wrong. So I adapted the platform.txt to follow the normal Arduino IDE platform.txt source code:

platform - Wavgat Original.txt

platform.txt

Now all works fine!