使用boost库编译时,显示如下错误:
CMakeFiles/1.dir/1.cpp.o: In function `categorizer::categorizer(int)':
1.cpp:(.text+0x5b8): undefined reference to `boost::filesystem::path::filename() const'
1.cpp:(.text+0x669): undefined reference to `boost::filesystem::path::filename() const'
CMakeFiles/1.dir/1.cpp.o: In function `categorizer::make_train_set()':
1.cpp:(.text+0xc53): undefined reference to `boost::filesystem::path::filename() const'
1.cpp:(.text+0xcd7): undefined reference to `boost::filesystem::path::filename() const'
CMakeFiles/1.dir/1.cpp.o: In function `categorizer::category_By_svm()':
1.cpp:(.text+0x2bbd): undefined reference to `boost::filesystem::path::filename() const'
CMakeFiles/1.dir/1.cpp.o:1.cpp:(.text+0x2c1c): more undefined references to `boost::filesystem::path::filename() const' follow
CMakeFiles/1.dir/1.cpp.o: In function `__static_initialization_and_destruction_0(int, int)':
1.cpp:(.text+0x41c6): undefined reference to `boost::s