나는 명백한 것을 볼 수 없다고 보인다. 당신이 할 수 http://pastie.org/8231509
: 내 프로젝트에 대한 몇 가지 부스트 라이브러리 기능을 사용하고 싶어하고 나는이 좋은 오류 갑자기 무엇입니까 알고 : 주요 여기에 내 CMakeLists.txt, 헤더를 찾을 수'boost :: system :: generic_category()'에 대한 정의되지 않은 참조는 무엇입니까?
Linking CXX executable ATFOR CMakeFiles/ATFOR.dir/stdafx.cc.o: In function
__static_initialization_and_destruction_0(int, int)': stdafx.cc:(.text+0x3c): undefined reference to
boost::system::generic_category()' stdafx.cc:(.text+0x48): undefined reference toboost::system::generic_category()' stdafx.cc:(.text+0x54): undefined reference to
boost::system::system_category()' CMakeFiles/ATFOR.dir/Main.cc.o: In function__static_initialization_and_destruction_0(int, int)': Main.cc:(.text+0x29d): undefined reference to
boost::system::generic_category()' Main.cc:(.text+0x2a9): undefined reference toboost::system::generic_category()' Main.cc:(.text+0x2b5): undefined reference to
boost::system::system_category()' collect2: error: ld returned 1 exit status
을하고, 나는 CMakeLists로 놀아 보았고, 프로젝트에 필요한 모든 헤더를 가지고 있다고 확신한다. 어쨌든, 나는 결코 전에 그런 오류가 없었고 나는 정말로 남겨진 아이디어가 없기 때문에 여기서 잘못된 점에 대한 제안/해결책을 정말로 고맙게 생각한다. 미리 Thx. 이 프로그램에 링크 될 수 있도록
그 오류를 수정하지 않았다 :/ – Auberotte
Cmake는 파일 시스템, 시스템에 대한 libs를 찾았다 고 말하지만, 내가 만들 때 여전히 링크 오류가있다. libboost-1.53.0- all-dev, 그래서 내가 필요한 전부를 가져야한다. 거기에 boost :: system 헤더를 포함시켜야합니까? 찾지 못했습니다 – Auberotte