argos3: symbol lookup error:

Requests regarding how to set up experiments in ARGoS.
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/" [INFO] Loaded library "./build/loop_functions/tracking_loop_functions/" argos3: symbol lookup error: ./build/loop_functions/tracking_loop_functions/ undefined symbol: _ZN22CTrackingLoopFunctionsC1Ev
CTrackingLoopFunctions is the class name in my loop function. I have attached the files below for reference.
(3.36 KiB) Downloaded 58 times
(7.15 KiB) Downloaded 55 times
(641 Bytes) Downloaded 56 times
(2.3 KiB) Downloaded 58 times

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

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

If you check your code, you'll notice that there is no implementation for the class constructor.
I made ARGoS.

Return to “How to... ?”