Anyone seen error 2?

Trying to verify the PID app and I get this error:

32+0 records in
32+0 records out
32 bytes (32 B) copied, 0.000790327 s, 40.5 kB/s
4+0 records in
4+0 records out
4 bytes (4 B) copied, 0.0934871 s, 0.0 kB/s
/tmp/ccynLshk.ltrans2.ltrans.o: In function setup':* *pid.cpp:22: undefined reference toPID::SetMode(PID::mode_t)’
/tmp/ccynLshk.ltrans2.ltrans.o: In function loop':* *pid.cpp:28: undefined reference toPID::Compute()’
/tmp/ccynLshk.ltrans21.ltrans.o: In function __static_initialization_and_destruction_0':* *pid.cpp:13: undefined reference toPID::PID(double, double*, double*, double, double, double, PID::direction_t)’*
collect2: error: ld returned 1 exit status
make[1]: *** [8c4dd2c6286ed27f2a422e761ae6b2ea54e6a301a1e71646d022f7167794.elf] Error 1
make: *** [main] Error 2

Error: Could not compile. Please review your code.

What is this PID app?
What device are you building for?
Have you checked you selected the correct target device?
How are you building?

1 Like