argos3: symbol lookup error:

Requests regarding how to set up experiments in ARGoS.
Aakriti
Posts: 10
Joined: Fri Sep 25, 2020 9:16 am

argos3: symbol lookup error:

Postby Aakriti » Fri Nov 06, 2020 8:20 am

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.
Attachments
epuck_tracking.h
(3.36 KiB) Downloaded 501 times
epuck_tracking.cpp
(7.15 KiB) Downloaded 462 times
tracking_loop_functions.h
(641 Bytes) Downloaded 462 times
tracking_loop_functions.cpp
(2.3 KiB) Downloaded 498 times

pincy
Site Admin
Posts: 632
Joined: Thu Mar 08, 2012 8:04 pm
Location: Boston, MA
Contact:

Re: argos3: symbol lookup error:

Postby pincy » Fri Nov 06, 2020 3:12 pm

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.
I made ARGoS.


Return to “How to... ?”