Page 1 of 1

argos3: symbol lookup error:

Posted: Fri Nov 06, 2020 8:20 am
by Aakriti
I have created my own loop functions with the name tracking_loop_functions.h, tracking_loop_functions.cpp. It is being called along with the controller epuck_tracking.cpp. This controller individually works fine (i.e. without using loop function along with it). But, along with the loop function, I am getting the following error while running the final code.

Code: Select all

[INFO] Total experiment length in clock ticks = unlimited [INFO] Loaded library "./build/controllers/epuck_tracking/libepuck_tracking.so" [INFO] Loaded library "./build/loop_functions/tracking_loop_functions/libtracking_loop_functions.so" argos3: symbol lookup error: ./build/loop_functions/tracking_loop_functions/libtracking_loop_functions.so: undefined symbol: _ZN22CTrackingLoopFunctionsC1Ev
CTrackingLoopFunctions is the class name in my loop function. I have attached the files below for reference.

Re: argos3: symbol lookup error:

Posted: Fri Nov 06, 2020 3:12 pm
by pincy
Type the following command:

Code: Select all

$ c++filt _ZN22CTrackingLoopFunctionsC1Ev
you'll get:

Code: Select all

CTrackingLoopFunctions::CTrackingLoopFunctions()
If you check your code, you'll notice that there is no implementation for the class constructor.