简体   繁体   English

如何为C ++ Visual Studio 2015安装boost / asio.hpp库

[英]how to install boost/asio.hpp library for C++ visual studio 2015

Hello I am trying to install this library for use in one of my visual studio projects. 您好,我正在尝试安装此库以用于我的Visual Studio项目之一。

I know I have to go to \\project properties-linker-general-additional library Directories but once I get there I don't know what to do. 我知道我必须去\\ project properties-linker-general-additional库目录,但是一旦到达那里,我就不知道该怎么办。

I am stuck here : 我被困在这里: 在此处输入图片说明

这是在Windows中安装,(可选)构建和引用boost的分步教程: http : //www.boost.org/doc/libs/1_61_0/more/getting_started/windows.html#get-boost

  1. Obtain a copy of boost and put it to a folder boost_root (name as you please). 获取boost的副本,并将其放在文件夹boost_root (根据需要命名)。 If you haven't done it already, the easiest way is to get a precompiled zip from boost 如果尚未完成, 最简单的方法是从boost获取预编译的zip。
  2. Find the directory where your boost binaries are located. 找到您的增强二进制文件所在的目录。 It usually is under the lib subdirectory, ie boost_root\\libs . 它通常在lib子目录下,即boost_root\\libs
  3. Under the Additional library directory of visual studio (the one you mention in your post), enter the full or relative path to the boost dll directory, ie path_to_boost_root\\boost_root\\libs 在Visual Studio的“ 其他库”目录 (您在帖子中提到的目录 )下,输入boost dll目录的完整或相对路径,即path_to_boost_root\\boost_root\\libs

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

相关问题 如何使用boost / asio.hpp文件g ++一个C ++程序? - How to g++ a C++ program using boost/asio.hpp file? 如何修复“致命错误:boost/asio.hpp:没有这样的文件或目录”? - How to fix "fatal error: boost/asio.hpp: no such file or directory"? Visual Studio 2010,有一些方法我可以添加一个前缀,例如(C:\\)来#include大量的 <boost/asio.hpp> 头? - Visual Studio 2010, is there some way I can add a prefix e.g. (C:\) to #include a massive amount of <boost/asio.hpp> headers? 包括boost / asio.hpp抛出错误 - Including boost/asio.hpp throwing error 错误:C1083:无法打开包含文件:'boost/asio.hpp':没有这样的文件或目录 - error: C1083: Cannot open include file: 'boost/asio.hpp': No such file or directory 包含后无法运行程序<boost/asio.hpp> - Can't run program after including <boost/asio.hpp> CMake 错误:致命错误:如果不使用 find_package() 进行升压,则找不到 boost/asio.hpp - CMake Error: fatal error : boost/asio.hpp not found without using find_package() for boost 如何在 Visual Studio 的 c++ 项目中包含库的 .cpp 和 .hpp 文件 - How to include .cpp and .hpp files of a library in my c++ project in visual studio C ++ Boost库geometry.hpp - C++ Boost library geometry.hpp 添加#include <boost/asio.hpp> 导致“有不同大小”的问题 - Adding #include <boost/asio.hpp> results in “has different size” problems
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM