obj\Debug\src\SQLite3DB.o||In function _static_initialization_and_destruction_0:|
D:\workspace-cpp\boost_1_54_0_beta1\boost\system\error_code.hpp|222|undefined reference to boost::system::generic_category()|
D:\workspace-cpp\boost_1_54_0_beta1\boost\system\error_code.hpp|223|undefined reference to boost::system::generic_category()|
D:\workspace-cpp\boost_1_54_0_beta1\boost\system\error_code.hpp|224|undefined reference to boost::system::system_category()|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 4 seconds) ===|
上面是我的完整的錯誤消息後,包括boost/filesystem.hpp
我的項目。我看到一些帖子說,加入-lboost_system
可能會解決這個問題,但我不知道在CodeBlocks中該怎麼做!
我已經花了一天時間解決這個問題。謝謝你的幫助!未定義的引用「boost :: system :: system_category()」
可能重複[?如何鏈接到與代碼::塊庫(http://stackoverflow.com/questions/5862757/how-do-i-link-to- a-library-with-codeblocks) –
我只是在鏈接器中添加-lboost_system,但它出現了這個錯誤「沒有這樣的文件或者勝利」。我該怎麼辦? – yphs