1
예제 양식을 컴파일하는 데 문제가 있습니다. LenMuse - this is the example.컴파일 플래그 부스트 gcc 오류
제공된 자습서의 플래그를 사용하고 몇 가지 다른 문제를 제거하기 위해 몇 가지 추가했지만 모든 문제를 해결할 수는 없습니다.
gcc interface.cpp -o interface `pkg-config --cflags x11` `pkg-config --cflags liblomse` `pkg-config --libs liblomse` `pkg-config --libs x11` -lstdc++ -lboost_system -I/usr/include/boost/ -lboost_filesystem -lboost_thread
내가이 플래그를 찾을 수없는 플래그 -lboost_thread-MT하지만 GCC 컴파일하려고 :
/usr/lib/liblomse.so: undefined reference to `boost::thread::start_thread()'
/usr/lib/liblomse.so: undefined reference to `boost::thread::timed_join(boost::posix_time::ptime const&)'
/usr/lib/liblomse.so: undefined reference to `boost::this_thread::sleep(boost::posix_time::ptime const&)'
/usr/lib/liblomse.so: undefined reference to `boost::thread::~thread()'
이 내가 사용하는 명령은 다음과 같습니다이 GCC에서 내 출력됩니다.
나는 부스트 1.53.0을 가지고 있으며, 페이지 작성자는 1.43 이상의 부스트가 필요하다고 말하고있다. 내 시스템은 ArchLinux입니다.
답변으로 질문을 직접 수정하지 말고 직접 질문에 답하십시오. –