🇺🇸Adafruit will not be shipping orders on Independence Day Monday 7/4/2022. Please allow extra time for your order to ship and plan accordingly.🇺🇸
0

Error in Compiling Example(s)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Error in Compiling Example(s)

by MattPackwood on Thu Feb 17, 2022 1:28 pm

I set up a clean install of Windows 10, tried the instrucitons from the top and got a "new set of errors"

Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Uno"

ble_uart:15:10: fatal error: bluefruit.h: No such file or directory

 #include <bluefruit.h>

          ^~~~~~~~~~~~~

compilation terminated.

exit status 1

bluefruit.h: No such file or directory



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

MattPackwood
 
Posts: 89
Joined: Wed Jul 23, 2014 9:13 pm

Re: Error in Compiling Example(s)

by dastels on Thu Feb 17, 2022 2:03 pm

It sounds like you're missing library.

Dave

dastels
 
Posts: 10171
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error in Compiling Example(s)

by dastels on Thu Feb 17, 2022 2:05 pm

Also, I thought you were using a CP Bluefruit ... that screenshot says UNO.

Dave

dastels
 
Posts: 10171
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error in Compiling Example(s)

by MattPackwood on Thu Feb 17, 2022 2:21 pm

I picked the wrong board...

Now I am "back to"

Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Adafruit Circuit Playground Bluefruit, S140 6.1.1, Level 0 (Release), Serial"

Library Adafruit_nRFCrypto has been declared precompiled:

Using precompiled library in C:\Users\MattP\OneDrive\Documents\ArduinoData\packages\adafruit\hardware\nrf52\1.3.0\libraries\Adafruit_nRFCrypto\src\cortex-m4\fpv4-sp-d16-hard

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: sketch\ble_uart.ino.cpp.o: in function `loop':

C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:92: undefined reference to `readPacket(BLEUart*, unsigned short)'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:177: undefined reference to `parsefloat(unsigned char*)'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:178: undefined reference to `parsefloat(unsigned char*)'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:179: undefined reference to `parsefloat(unsigned char*)'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:180: undefined reference to `parsefloat(unsigned char*)'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:185: undefined reference to `packetbuffer'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:185: undefined reference to `packetbuffer'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:185: undefined reference to `packetbuffer'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:185: undefined reference to `packetbuffer'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:185: undefined reference to `packetbuffer'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:127: undefined reference to `parsefloat(unsigned char*)'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:128: undefined reference to `parsefloat(unsigned char*)'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:129: undefined reference to `parsefloat(unsigned char*)'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:141: undefined reference to `parsefloat(unsigned char*)'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:142: undefined reference to `parsefloat(unsigned char*)'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: sketch\ble_uart.ino.cpp.o:C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:143: more undefined references to `parsefloat(unsigned char*)' follow

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: sketch\ble_uart.ino.cpp.o: in function `loop':

C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:106: undefined reference to `packetbuffer'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:106: undefined reference to `packetbuffer'

c:/users/mattp/onedrive/documents/arduinodata/packages/adafruit/tools/arm-none-eabi-gcc/9-2019q4/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\MattP\OneDrive\Documents\Arduino\ble_uart/ble_uart.ino:106: undefined reference to `packetbuffer'

collect2.exe: error: ld returned 1 exit status

exit status 1

Error compiling for board Adafruit Circuit Playground Bluefruit.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

MattPackwood
 
Posts: 89
Joined: Wed Jul 23, 2014 9:13 pm

Re: Error in Compiling Example(s)

by dastels on Thu Feb 17, 2022 2:29 pm

This sort of thing really looks like a library mismatch, either version mismatches or a completely different library than the client code was written to use.

Dave

dastels
 
Posts: 10171
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error in Compiling Example(s)

by MattPackwood on Thu Feb 17, 2022 2:59 pm

What OS are you running? I will set up a VP to test.

MattPackwood
 
Posts: 89
Joined: Wed Jul 23, 2014 9:13 pm

Re: Error in Compiling Example(s)

by dastels on Thu Feb 17, 2022 6:14 pm

Ubuntu 20.04.2 LTS

Dave

dastels
 
Posts: 10171
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error in Compiling Example(s)

by MattPackwood on Mon Feb 21, 2022 2:28 pm

I am setting that up but here is a question, could it do with the packetParser.cppfile (and where that is located)?

MattPackwood
 
Posts: 89
Joined: Wed Jul 23, 2014 9:13 pm

Please be positive and constructive with your questions and comments.