<bdo id='uQTZ2'></bdo><ul id='uQTZ2'></ul>
    1. <tfoot id='uQTZ2'></tfoot>
    2. <i id='uQTZ2'><tr id='uQTZ2'><dt id='uQTZ2'><q id='uQTZ2'><span id='uQTZ2'><b id='uQTZ2'><form id='uQTZ2'><ins id='uQTZ2'></ins><ul id='uQTZ2'></ul><sub id='uQTZ2'></sub></form><legend id='uQTZ2'></legend><bdo id='uQTZ2'><pre id='uQTZ2'><center id='uQTZ2'></center></pre></bdo></b><th id='uQTZ2'></th></span></q></dt></tr></i><div id='uQTZ2'><tfoot id='uQTZ2'></tfoot><dl id='uQTZ2'><fieldset id='uQTZ2'></fieldset></dl></div>

      <small id='uQTZ2'></small><noframes id='uQTZ2'>

        <legend id='uQTZ2'><style id='uQTZ2'><dir id='uQTZ2'><q id='uQTZ2'></q></dir></style></legend>

      1. 编译时对 boost::system::system_category() 的未定义引用

        undefined reference to boost::system::system_category() when compiling(编译时对 boost::system::system_category() 的未定义引用)

        • <bdo id='M2MXW'></bdo><ul id='M2MXW'></ul>

            <tbody id='M2MXW'></tbody>

                <i id='M2MXW'><tr id='M2MXW'><dt id='M2MXW'><q id='M2MXW'><span id='M2MXW'><b id='M2MXW'><form id='M2MXW'><ins id='M2MXW'></ins><ul id='M2MXW'></ul><sub id='M2MXW'></sub></form><legend id='M2MXW'></legend><bdo id='M2MXW'><pre id='M2MXW'><center id='M2MXW'></center></pre></bdo></b><th id='M2MXW'></th></span></q></dt></tr></i><div id='M2MXW'><tfoot id='M2MXW'></tfoot><dl id='M2MXW'><fieldset id='M2MXW'></fieldset></dl></div>
                <tfoot id='M2MXW'></tfoot>
                <legend id='M2MXW'><style id='M2MXW'><dir id='M2MXW'><q id='M2MXW'></q></dir></style></legend>
              1. <small id='M2MXW'></small><noframes id='M2MXW'>

                • 本文介绍了编译时对 boost::system::system_category() 的未定义引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试在 Ubuntu 11.10 上编译一个使用 Boost 库的程序.我安装了来自 Ubuntu 存储库的 1.46-dev Boost 库,但在编译程序时出现错误.

                  I'm trying to compile a program on Ubuntu 11.10 that uses the Boost libraries. I have the 1.46-dev Boost libraries from the Ubuntu Repository installed, but I get an error when compiling the program.

                  对 boost::system::system_category() 的未定义引用

                  我做错了什么?

                  推荐答案

                  您使用的 boost 库取决于 boost_system 库.(并非所有人都这样做.)

                  The boost library you are using depends on the boost_system library. (Not all of them do.)

                  假设您使用 gcc,请尝试将 -lboost_system 添加到您的编译器命令行以链接到该库.

                  Assuming you use gcc, try adding -lboost_system to your compiler command line in order to link against that library.

                  这篇关于编译时对 boost::system::system_category() 的未定义引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Unable to access non-const member functions of objects in C++ std::set(无法访问 C++ std::set 中对象的非常量成员函数)
                  Constructing std::function argument from lambda(从 lambda 构造 std::function 参数)
                  STL BigInt class implementation(STL BigInt 类实现)
                  Sync is unreliable using std::atomic and std::condition_variable(使用 std::atomic 和 std::condition_variable 同步不可靠)
                  Move list element to the end in STL(在 STL 中将列表元素移动到末尾)
                  Why is overloading operatoramp;() prohibited for classes stored in STL containers?(为什么禁止对存储在 STL 容器中的类重载 operatoramp;()?)
                  1. <legend id='EpVoK'><style id='EpVoK'><dir id='EpVoK'><q id='EpVoK'></q></dir></style></legend>

                    <small id='EpVoK'></small><noframes id='EpVoK'>

                          <bdo id='EpVoK'></bdo><ul id='EpVoK'></ul>
                          <tfoot id='EpVoK'></tfoot>

                              <tbody id='EpVoK'></tbody>
                          • <i id='EpVoK'><tr id='EpVoK'><dt id='EpVoK'><q id='EpVoK'><span id='EpVoK'><b id='EpVoK'><form id='EpVoK'><ins id='EpVoK'></ins><ul id='EpVoK'></ul><sub id='EpVoK'></sub></form><legend id='EpVoK'></legend><bdo id='EpVoK'><pre id='EpVoK'><center id='EpVoK'></center></pre></bdo></b><th id='EpVoK'></th></span></q></dt></tr></i><div id='EpVoK'><tfoot id='EpVoK'></tfoot><dl id='EpVoK'><fieldset id='EpVoK'></fieldset></dl></div>