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

  • <tfoot id='uHZui'></tfoot>
        <legend id='uHZui'><style id='uHZui'><dir id='uHZui'><q id='uHZui'></q></dir></style></legend>

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

        在 Clion 中设置 Boost

        Setup Boost in Clion(在 Clion 中设置 Boost)
        • <tfoot id='pUWJL'></tfoot>

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

                <bdo id='pUWJL'></bdo><ul id='pUWJL'></ul>

                    <tbody id='pUWJL'></tbody>
                1. <legend id='pUWJL'><style id='pUWJL'><dir id='pUWJL'><q id='pUWJL'></q></dir></style></legend>
                2. <small id='pUWJL'></small><noframes id='pUWJL'>

                3. 本文介绍了在 Clion 中设置 Boost的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在 Clion 和 MinGW 中使用 Boost 库?我已将

                  解决方案

                  我使用 MinGW 发行版Stephan T. Lavavej 预建了 Boost 库.

                  在我的 cmaklist.txt 中我添加了这个

                  set(Boost_INCLUDE_DIR c:/mingw/include/)设置(Boost_LIBRARY_DIR c:/mingw/lib/)find_package(需要提升组件系统文件系统)包含目录(${Boost_INCLUDE_DIR})

                  这篇文章帮助我开始.如何使用 CMake 将外部库 (boost) 包含到 CLion C++ 项目中?

                  How to use Boost library in Clion with MinGW ? I have downloaded and unzipped boost_1_60_0.zip to C:oost_1_60_0. What am I supposed to do now ? Do I have to install something ? Here is my CMakeLists.txt:

                  cmake_minimum_required(VERSION 3.3)
                  project(server_client)
                  
                  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -s -O3")
                  set(CMAKE_EXE_LINKER_FLAGS -static)
                  
                  set(BOOST_ROOT "C:/boost_1_60_0")
                  set(BOOSTROOT "C:/boost_1_60_0")
                  find_package(Boost 1.60.0)
                  if(NOT Boost_FOUND)
                      message(FATAL_ERROR "Could not find boost!")
                  endif()
                  
                  set(SOURCE_FILES chat_server.cpp)
                  add_executable(server_client ${SOURCE_FILES})
                  

                  Can not find Boost:

                  解决方案

                  I use MinGW distro by Stephan T. Lavavej with Boost libraries prebuilt.

                  In my cmaklist.txt I added this

                  set(Boost_INCLUDE_DIR c:/mingw/include/)
                  set(Boost_LIBRARY_DIR c:/mingw/lib/)
                  find_package(Boost COMPONENTS system filesystem REQUIRED)
                  include_directories(${Boost_INCLUDE_DIR})
                  

                  This post help me get it going. How to include external library (boost) into CLion C++ project with CMake?

                  这篇关于在 Clion 中设置 Boost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How to limit the number of running instances in C++(C++中如何限制运行实例的数量)
                  Using boost::asio::async_read with stdin?(将 boost::asio::async_read 与 stdin 一起使用?)
                  How to find out what dependencies (i.e other Boost libraries) a particular Boost library requires?(如何找出特定 Boost 库需要哪些依赖项(即其他 Boost 库)?)
                  What#39;s the purpose of a leading quot;::quot; in a C++ method call(引导“::的目的是什么?在 C++ 方法调用中)
                  Boost Spirit x3: parse into structs(Boost Spirit x3:解析为结构体)
                  How boost auto-linking makes choice?(boost自动链接如何做出选择?)

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

                    • <small id='IJhee'></small><noframes id='IJhee'>

                        • <bdo id='IJhee'></bdo><ul id='IJhee'></ul>
                          <tfoot id='IJhee'></tfoot>