2016-11-11 1 views
0

나는 부스트를 사용하여 리눅스에서 크로스 컴파일하려고하고있다. 이미 크로스 컴파일 후원을했고 나는 DLL을 수행하지만 연결있을 때, 나는 몇 가지 정의되지 않은 참조 받고 있어요 :부스트 정의되지 않은 참조를 Windows에서 크로스 컴파일 리눅스

SRC/클라이언트/CommunicationHandler.o : CommunicationHandler.cpp를 :(. 0x170) : boost :: asio :: io_service :: io_service()에 대한 정의되지 않은 참조

src/client/CommunicationHandler.o : CommunicationHandler.cpp :(. 텍스트 + 0x1b7) : 정의되지 않은 boost에 대한 참조 : : ASIO :: IP : address_v4 :: from_string (표준 : __ cxx11 :: basic_string, 표준 : : 할당> const를 &) '

SRC/클라이언트/CommunicationHandler.o :. CommunicationHandler.cpp :(텍스트 + 0x1c7): 정의되지 않은 참조 boost :: asio :: ip :: address :: address (boost :: asio :: ip :: address_v4 const &) '

src/client/CommunicationHandler.o : CommunicationHandler.cpp :(. 텍스트 + 0x54e) : boost :: asio :: io_service :: ~ io_service()에 대한 정의되지 않은 참조

src/client/CommunicationHandler.o : CommunicationHandler.cpp :(. 텍스트 + 0x5c0) : 정의되지 않은 참조 : boost :: asio :: io_service :: ~ io_service() '

src/client/CommunicationHandler.o : CommunicationHandler.cpp :(. 텍스트 + 0x97e) : boost :: asio :: io_service :: run()에 대한 정의되지 않은 참조 '

: src/client/CommunicationHandler.o : CommunicationHandler.cpp :(. 텍스트 $ _ZN5boost4asio2ip14basic_endpointINS1_3tcpEEC1ERKNS1_7addressEt [_ZN5boost4asio2ip14basic_endpointINS1_3tcpEEC1ERKNS1_7addressEt] + 0x2a) : boost :: asio :: ip :: detail :: endpoint :: endpoint에 대한 정의되지 않은 참조 (boost :: asio : : IP : 주소 CONST & '), 서명되지 않은 짧은

/클라이언트/CommunicationHandler.o SRC :. CommunicationHandler.cpp가 :(텍스트 $ _ZN5boost4asio2ip16resolver_serviceINS1_3tcpEE7destroyERSt10shared_ptrIvE가 [_ZN5boost4asio2ip16resolver_serviceINS1_3tcpEE7destroyERSt10shared_ptrIvE] +가 0x20가) : 정의되지 않은 참조를 높일 수 :: ASIO :: 자세히 :: resolver_service_base :: destroy (std :: shared_ptr &) '

... 등

기호가 DLL에없는 이유는 무엇입니까? 제대로 연결하려면 어떻게해야합니까?

답변

0

이 #이

#endif // 이는 BOOST_SYSTEM_USE_LIB 정의가 BOOST_SYSTEM_USE_LIB #ifndef

를 작동하는지 확인