-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Previously I was able to compile the .cpp on my Raspberry Pi with no issues. Now I am having several. The g++ compiler throws an error saying <include/lidarlite_v3.h> can not be found. To fix this problem i added lidarlite_v3.h to the default linux include file and changed the code to #include <lidarlite_v3.h>. This seems to fix the error of not finding the file but then the compiler throws the following:
/usr/bin/ld: /tmp/ccnZe3GD.o: in function `main':
llv3.cpp:(.text+0x10): undefined reference to `LIDARLite_v3::i2c_init()'
/usr/bin/ld: llv3.cpp:(.text+0x20): undefined reference to `LIDARLite_v3::configure(unsigned char, unsigned char)'
/usr/bin/ld: llv3.cpp:(.text+0x2c): undefined reference to `LIDARLite_v3::getBusyFlag(unsigned char)'
/usr/bin/ld: llv3.cpp:(.text+0x4c): undefined reference to `LIDARLite_v3::takeRange(unsigned char)'
/usr/bin/ld: llv3.cpp:(.text+0x58): undefined reference to `LIDARLite_v3::readDistance(unsigned char)'
collect2: error: ld returned 1 exit status
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels