Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » undefined reference(undefined reference)
undefined reference [message #1818018] Wed, 04 December 2019 10:00 Go to next message
Sva Var is currently offline Sva VarFriend
Messages: 1
Registered: December 2019
Junior Member
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
Re: undefined reference [message #1818038 is a reply to message #1818018] Wed, 04 December 2019 15:01 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
undefined reference to evo::IRDaemon::exit()
means the object module or library containing evo::IRDaemon::exit() is missing.
Previous Topic: How to open/import Arduino IDE's into Eclipse
Next Topic:Eclipse not copying volume to Docker
Goto Forum:
  


Current Time: Sat Apr 27 01:36:17 GMT 2024

Powered by FUDForum. Page generated in 0.02392 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top