Foros del Web » Programación para mayores de 30 ;) » C/C++ »

Erro al intentar compilar con g++

Estas en el tema de Erro al intentar compilar con g++ en el foro de C/C++ en Foros del Web. ./powerpc-8540-linux-gnu-g++.exe -I /cygdrive/c/mlat-clean-src/shared/rmrl/mlatlib/ /cygdrive/c/mlat-clean-src/shared/rmrl/tools/sendwantli cpp ESTE ES EL MENSAJE DE ERROR: cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.text+0x1f4): In function `main': undefined reference to `EventLogger::instance()' cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.text+0x214): In function `main': undefined reference ...
  #1 (permalink)  
Antiguo 26/01/2010, 10:37
 
Fecha de Ingreso: diciembre-2008
Mensajes: 49
Antigüedad: 15 años, 4 meses
Puntos: 1
Erro al intentar compilar con g++

./powerpc-8540-linux-gnu-g++.exe -I /cygdrive/c/mlat-clean-src/shared/rmrl/mlatlib/ /cygdrive/c/mlat-clean-src/shared/rmrl/tools/sendwantli
cpp


ESTE ES EL MENSAJE DE ERROR:

cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.text+0x1f4): In function `main':
undefined reference to `EventLogger::instance()'
cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.text+0x214): In function `main':
undefined reference to `EventLogger::configure(char const*, bool, bool, bool)'
cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.text+0x308): In function `main':
undefined reference to `TxSocket::TxSocket(bool)'
cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.text+0x498): In function `main':
undefined reference to `TxSocket::sendMsg(unsigned short, unsigned int, Msg const&) const'
cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.text+0x4b0): In function `main':
undefined reference to `TxSocket::~TxSocket()'
cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.text+0x4ec): In function `main':
undefined reference to `TxSocket::~TxSocket()'
cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.gnu.linkonce.t._ZN11MsgWantListD1Ev+0x 1e): In function `MsgWantList::~MsgWantList()':
undefined reference to `vtable for MsgWantList'
cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.gnu.linkonce.t._ZN11MsgWantListD1Ev+0x 22): In function `MsgWantList::~MsgWantList()':
undefined reference to `vtable for MsgWantList'
cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.gnu.linkonce.t._ZN11MsgWantListC1Ev+0x 26): In function `MsgWantList::MsgWantList()':
undefined reference to `vtable for MsgWantList'
cygdrive/c/DOCUME~1/AHIDAL~1/CONFIG~1/Temp/ccidAFkt.o(.gnu.linkonce.t._ZN11MsgWantListC1Ev+0x 2a): In function `MsgWantList::MsgWantList()':
undefined reference to `vtable for MsgWantList'
ollect2: ld returned 1 exit status
  #2 (permalink)  
Antiguo 27/01/2010, 01:42
 
Fecha de Ingreso: enero-2010
Mensajes: 24
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: Erro al intentar compilar con g++

Buenas

Segun aparece no has linkado con la libreria donde estan definidas:

EventLogger::instance
EventLogger::configure
TxSocket::TxSocket
. . . etc
  #3 (permalink)  
Antiguo 27/01/2010, 04:22
 
Fecha de Ingreso: diciembre-2008
Mensajes: 49
Antigüedad: 15 años, 4 meses
Puntos: 1
Respuesta: Erro al intentar compilar con g++

Lo e compilado con otro compilador y ya me funciona gracias de todas maneras!!

Etiquetas: compilar
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:44.