undefined reference [message #1818018] |
Wed, 04 December 2019 05:00  |
Eclipse User |
|
|
|
Hi
I am running following code in Eclipse:
#include <iostream>
#ifdef _WIN32
//needed before windows.h ...
#include<winsock2.h>
#include<WS2tcpip.h>
#else
#include <csignal>
#endif
// Optris logging interface
#include <IRLogger.h>
// Class wrapping callback routines
#include "IRDaemon.h"
#define DIRECT_DAEMON_PORT 1337
evo::IRDaemon* _daemon = NULL;
#ifdef _WIN32
BOOL ctrlHandler(DWORD fdwCtrlType)
{
if(_daemon) _daemon->exit();
return true;
}
#else
void sigHandler(int signum)
{
if(_daemon) _daemon->exit();
}
#endif
....
when I compile the code I get:
Building target: DaemonCPP
Invoking: Cross G++ Linker
arm-poky-linux-gnueabi-g++ --sysroot=/opt/fsl-imx-fb/4.14-sumo/sysroots/cortexa9hf-neon-poky-linux-gnueabi -mfloat-abi=hard -o "DaemonCPP" ./irDirectDaemon.o
./irDirectDaemon.o: In function `sigHandler(int)':
/home/sva/cdt-master/ws/DaemonCPP/Debug/../irDirectDaemon.cpp:30: undefined reference to `evo::IRDaemon::exit()'
collect2: error: ld returned 1 exit status
make: *** [makefile:46: DaemonCPP] Error 1
"make all" terminated with exit code 2. Build might be incomplete.
Anyone can please help me through this issue. Thanks
|
|
|
|
Powered by
FUDForum. Page generated in 0.04731 seconds