【发布时间】:2013-10-19 10:03:12
【问题描述】:
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 中的哪里可以做到这一点!
我已经花了一天的时间来解决这个问题。感谢您的帮助!
【问题讨论】:
-
我只是在链接器中添加了 -lboost_system 但它出现了这个错误“没有这样的文件或字典”。我该怎么办?
标签: c++ boost codeblocks undefined-reference