우분투 12.04에서 Eclipse로 C++ 프로젝트 빌드중 생긴 문제에 대하여
안녕하세요?
리눅스도 초보이고 이클립스 또한 처음 사용하는 사용자입니다.
C++ 프로젝트를 만들어 빌드를 하였는데 아래와 같은 에러가 발생하였습니다.
초보로서는 무슨 말인지 해결이 쉽지가 않군요.
고수님들의 조언 바랍니다.
**** Build of configuration Debug for project test1 ****
make all
Building file: ../rx_samples_to_file.cpp
Invoking: Cross G++ Compiler
g++ -I/usr/local/boost_1_49_0 -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"rx_samples_to_file.d" -MT"rx_samples_to_file.d" -o "rx_samples_to_file.o" "../rx_samples_to_file.cpp"
Finished building: ../rx_samples_to_file.cpp
Building target: test1
Invoking: Cross G++ Linker
g++ -L/usr/local/boost_1_49_0/stage/lib -L/usr/lib -o "test1" ./rx_samples_to_file.o -luhd
/usr/bin/ld: ./rx_samples_to_file.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: *** [test1] Error 1
**** Build Finished ****
저는 C++은 잘 모릅니다만
저는 C++은 잘 모릅니다만 rx_sample_to_file안에 boost 라이브러리에서 제공하는 sleep 함수를 사용했는데
libboost_thread 라이브러리를 링크하지않는다는 에러로 보입니다.
링크 옵션에 라이브러리를 추가하시면 될것 같습니다.
댓글 달기