[Jderobot] Error al compilar un componente

Roberto Calvo rocapal en gsyc.urjc.es
Lun Oct 28 11:09:23 CET 2013


Hola,

Asegurate de tener en tu TARGET LINK las librerías de boost, algo así:

TARGET_LINK_LIBRARIES(tu_componente
    ....
    ${Boost_LIBRARIES}
    ...

El dom, 27-10-2013 a las 14:12 -0700, dmartino escribió:
> Buenas,
> Estoy intentando compilar mi componente pero obtengo los siguientes errores
> durante el enlazado y no consigo averiguar el modo de arreglarlo, un saludo,
> Daniel
> 
> Linking CXX executable firstplane
> /usr/bin/ld: CMakeFiles/firstplane.dir/cloudGrabber.cpp.o: undefined
> reference to symbol 'boost::this_thread::sleep(boost::posix_time::ptime
> const&)'
> /usr/bin/ld: note: 'boost::this_thread::sleep(boost::posix_time::ptime
> const&)' is defined in DSO /usr/lib/libboost_thread.so.1.46.1 so try adding
> it to the linker command line
> /usr/lib/libboost_thread.so.1.46.1: could not read symbols: Invalid
> operation
> collect2: ld returned 1 exit status
> make[2]: *** [src/stable/components/firstplane/firstplane] Error 1
> make[1]: ***
> [src/stable/components/firstplane/CMakeFiles/firstplane.dir/all] Error 2
> make: *** [all] Error 2
> 
> 
> 
> --
> View this message in context: http://jderobot-developer-list.2315034.n4.nabble.com/Error-al-compilar-un-componente-tp4641763.html
> Sent from the Jderobot Developer List mailing list archive at Nabble.com.
> _______________________________________________
> Jde-developers mailing list
> Jde-developers en gsyc.es
> http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers

-- 
Roberto Calvo Palomino        | Robotics Lab (GSyC) 
R&D Android Mobile Engineer   | Universidad Rey Juan Carlos

Twitter: @rocapal 
Linkedin: http://www.linkedin.com/in/rocapal



More information about the Jde-developers mailing list