简体   繁体   English

Boost :: filesystem的C ++链接错误

[英]C++ link error for boost::filesystem

global destructor keyed to (commands.cpp) undefined reference to boost::system::get_system_category() 全局析构函数键入(commands.cpp)对boost :: system :: get_system_category()的未定义引用

How to resolve this error? 如何解决这个错误?

You need to link to the Boost.System library as well. 您还需要链接到Boost.System库。 It is a dependency of Boost.Filesystem in later releases of Boost. 在Boost的更高版本中,它是Boost.Filesystem的依赖项。

您需要在链接库中包含boost_system。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM