Linker: undefined reference to `GPIOClass::~GPIOClass()' [message #1737055] |
Tue, 05 July 2016 11:26 |
Kurt Struevy Messages: 45 Registered: May 2016 |
Member |
|
|
Hello to all,
first of all: I would like to give a big compliment to all of the Eclipse developers. They do a great job:
I'm sorry, but have a small problem. But I have no Idea what's the reason for this error.
I try to link some different libraries to my project. Each of this libraries is located in a separate project for static libraries.
The call for the linker is as follows:
arm-linux-gnueabihf-g++ -L"/home/kurt/workspace/GPIOClass/Debug" -L"/home/kurt/workspace/StepperMotor/Debug" -L"/home/kurt/workspace/TimerClass/Debug" -o "Teleskopsteuerung" ./Teleskopsteuerung.o -lrt -lGPIOClass -lStepperMotor -lTimerClass
Then I get this error messages:
/home/kurt/workspace/StepperMotor/Debug/libStepperMotor.a(StepperMotor.o): In function `signal_callback_handler(int)':
/home/kurt/workspace/StepperMotor/Debug/../StepperMotor.cpp:43: undefined reference to `GPIOClass::~GPIOClass()'
/home/kurt/workspace/StepperMotor/Debug/../StepperMotor.cpp:44: undefined reference to `GPIOClass::~GPIOClass()'
/home/kurt/workspace/StepperMotor/Debug/../StepperMotor.cpp:45: undefined reference to `GPIOClass::~GPIOClass()'
makefile:44: recipe for target 'Teleskopsteuerung' failed
/home/kurt/workspace/StepperMotor/Debug/../StepperMotor.cpp:46: undefined reference to `GPIOClass::~GPIOClass()'
/home/kurt/workspace/StepperMotor/Debug/libStepperMotor.a(StepperMotor.o): In function `StepperMotor::initGPIO()':
/home/kurt/workspace/StepperMotor/Debug/../StepperMotor.cpp:60: undefined reference to `GPIOClass::setdir_gpio(std::string)'
/home/kurt/workspace/StepperMotor/Debug/../StepperMotor.cpp:61: undefined reference to `GPIOClass::setdir_gpio(std::string)'
/home/kurt/workspace/StepperMotor/Debug/../StepperMotor.cpp:62: undefined reference to `GPIOClass::setdir_gpio(std::string)'
/home/kurt/workspace/StepperMotor/Debug/../StepperMotor.cpp:63: undefined reference to `GPIOClass::setdir_gpio(std::string)'
And more....
Sorry! I missed to tell some of my system:
I run Hyper-V (Debian) on Windows10
Eclipse Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600
And using the GCC compiler and linker for remote development.
[Updated on: Tue, 05 July 2016 11:59] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03260 seconds