相关疑难解决方法(0)

用于64位窗口的64位Boost版本

是否有适用于VS2008的64位Boost库版本?或者我必须自己编译一个?如果,那么,有没有人有经验呢?

c++ boost visual-studio-2008

119
推荐指数
4
解决办法
9万
查看次数

致命错误LNK1104:无法打开文件'libboost_system-vc110-mt-gd-1_51.lib'

似乎我不能让这个工作.我创建了一个简单的控制台应用程序(依赖于websocket++库),它需要Boost库..但是当我尝试编译时,我得到:

致命错误LNK1104:无法打开文件'libboost_system-vc110-mt-gd-1_51.lib'

但是,我做了创建lib的bjam,(boost_root)/stage/libs并将libs的路径链接到编译器C++/Additionnals includes.

如果我查看(boost_root)/stage/libs文件 libboost_system-vc110-mt-gd-1_51.lib不存在.它被称为libboost_system-vc110-mt-sgd-1_51.lib.

任何的想法?

c++ boost

79
推荐指数
4
解决办法
15万
查看次数

如何使用Visual Studio 2015(Enterprise)构建boost 1.58.0版

我喜欢使用(新)Visual Studio 2015(Enterprise)构建boost 1.58.0.在过去,我按以下方式进行:

  1. www.boost.org下载boost 1.58.0
  2. 提取文件(例如C:\thirdparty\vs2013\x64\boost_1_58_0)
  3. 启动Visual Studio 2013 x64命令提示符(VS2013 x64 Native Tools Command Prompt)
  4. 更改为boost目录(例如cd C:\thirdparty\vs2013\x64\boost_1_58_0)
  5. 执行 .\bootstrap.bat
  6. 执行 .\b2 -j8 --toolset=msvc-14.0 address-model=64 --build-type=complete stage
  7. b2 -j8 --toolset = msvc-12.0 address-model = 64 --build-type = complete stage --with-python

但在VS2015中没有VS2015命令提示符.

vcvarsall.bat缺少我有时用来设置VS2013命令提示符.

如何使用VS2015编译boost的源代码?

c++ boost b2 visual-studio-2015

34
推荐指数
2
解决办法
4万
查看次数

Boost和Python 3.x

boost.python如何处理Python 3?它只是Python 2吗?

c++ python boost boost-python python-3.x

23
推荐指数
3
解决办法
3万
查看次数

在尝试构建提升时未能更新58个目标,发生了什么?

用命令构建
[mirror@hugemeow boost_1_51_0]$ ./b2 --prefix=$HOME/ins/ins-boost2

并失败了以下消息,为什么?

common.copy stage/lib/libboost_timer.a
common.mkdir bin.v2/libs/wave/build/gcc-4.1.2/release/link-static
common.mkdir bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_cpp_exprgrammar.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_cpp_grammar.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_cpp_literalgrs.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_defined_grammar.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_predef_macros.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_re2c_lexer.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/instantiate_re2c_lexer_str.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/token_ids.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/wave_config_constant.o
common.mkdir bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/cpplexer
common.mkdir bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/cpplexer/re2clex
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/cpplexer/re2clex/aq.o
gcc.compile.c++ bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/cpplexer/re2clex/cpp_re.o
gcc.archive bin.v2/libs/wave/build/gcc-4.1.2/release/link-static/threading-multi/libboost_wave.a
common.copy stage/lib/libboost_wave.a
...failed updating 58 targets...
...skipped 12 targets...
...updated 887 targets...
[mirror@hugemeow boost_1_51_0]$ echo $?
1
Run Code Online (Sandbox Code Playgroud)

这个问题与构建boost失败或者无法使用GCC构建Boost库不同,我遵循链接 http://www.boost.org/doc/libs/1_51_0/more/getting_started/unix-variants 的说明. HTML

c++ gcc boost build

15
推荐指数
1
解决办法
1万
查看次数

由nuget驱动的vc ++ vs2013代码不构建

我是VC++和Boost的新手.我的问题是我想在我的VC++ Visual Studio 2013项目中使用Boost 1.56.0(所以我使用vc120).

我已经通过NuGet安装了Boost(https://www.nuget.org/packages/boost/).一切似乎都没问题,但当我尝试构建我的项目时,它说:

致命错误LNK1104:无法打开文件"libboost_thread-vc120-mt-gd-1_56.lib".

你知道问题究竟在哪里以及我如何解决它?

我认为使用NuGet安装一个软件包将完成所有工作以使其自行运行.我知道链接器找不到lib文件(实际上根本没有构建过程).但我不知道如何解决这个问题.

我认为用VC120手动编译Boost并将lib文件夹添加到链接器的其他路径并不是一个好主意.那我为什么要使用NuGet呢?

欢迎任何帮助 - 我正在尝试和搜索互联网这么多个小时,我无法解决问题.

谢谢Stefan

c++ boost visual-c++ nuget visual-studio-2013

10
推荐指数
2
解决办法
3599
查看次数

在VS2013中构建/包含Boost.Python

有人能告诉我,如果我做错了什么.

我在Windows 7上使用Visual Studio 2013,我希望能够设置一个简单的Boost.Python项目.我不知道我是否在构建提升或在项目中包含提升时出错了.

错误

当我尝试#include任何boost python模块时,例如#include <boost/python/module.hpp>我在Visual Studio中收到以下错误.

1>c:\boost_1_55_0\boost\python\detail\wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory
Run Code Online (Sandbox Code Playgroud)

建造

我试图遵循这个SO线程中的指令,其中KTC解决了Python,以及来自Boost的这个Python howto,但由于这两个链接都有点过时,所以做的事情有所不同,并且一些步骤似乎在较新版本的Boost中有所改变,我不得不即兴发布一些指示.

这就是我做的.

  1. 将最新版本(1.55)的Boost源文件解压缩到C:\boost_1_55_0.
  2. 用于cmd.exe导航到C:\boost_1_55_0.(我没有使用Developer Command Prompt for VS2013发现下\Microsoft Visual Studio 12.0\Common7\Tools\Shortcuts.这应该没有任何区别,是否应该?提升1.55的官方指南没有具体提及使用Command Prompt for VS2013.
  3. 用于bootstrapcmd.
  4. 编辑project-config.jam(创建bootstrap)并添加了我的Python 3.4安装路径C:\Python34.我的.jam …

c++ python boost visual-studio boost-python

9
推荐指数
1
解决办法
9194
查看次数

如何使用VS在Windows 7上安装Boost

所以我整天都在尝试将Boost与Visual Studio(2008)集成在Windows 7上.我首先通过这个如何在Visual Studio 2010中使用Boost两次.

我搜索了所有(至少有3个)simiral主题,但没有一个工作.

有些人建议使用这个:www.boostpro.com/download/但链接不活跃.有人建议将运行时库更改为多线程DLL,但也没有用.

我只是尝试包含#include <boost/thread.hpp>并得到此错误

致命错误LNK1104:无法打开文件'libboost_thread-vc90-mt-s-1_53.lib'.

在安装Boost之前,错误是找不到thread.hpp它,所以似乎Boost安装得有点正确.

问题是我在使用本教程时没有构建库.我该如何手动构建它们?

windows boost

6
推荐指数
1
解决办法
2万
查看次数

安装程序提升并使用Visual Studio 2010 Express

我知道你可以在网上找到类似的问题,特别是在stackoverflow中,但我仍然需要写这个问题,因为我找不到任何一个分步教程的页面如何设置boost库并将其与visual studio 2010集成表达.即使在这里:如何在Visual Studio 2010中使用Boost 还有一些步骤(例如3,4),我找不到菜单......

所以请帮助我在Win7上使用visual studio 2010 express进行提升.

c++ windows installation boost visual-studio-2010

5
推荐指数
2
解决办法
6800
查看次数

无法使用Boost.process

我下载并升级了1.54.0的Boost库版本.我做了一切就像回答这个问题:如何在Visual Studio 2010中使用Boost 然后我从这里下载并解压缩Boost.process:http://www.highscore.de/boost/process/ 并做了所有的回答这个问题:如何编译Boost.Process库?.

我把holder进程和process.hpp放在holder boost中,把其他holder进程放到libs中,并试图用b2.exe和bjam.exe用"--with-process"编译它,但得到"错误的库名"进程".

无论如何,我将库包含到我的项目中并放入以下代码:

    namespace bp = ::boost::process;

        int main()
        {

        std::string exec = "G:\\Detect.exe"; 
        std::vector<std::string> args; 
        args.push_back("--version");

        bp::context ctx; 
        ctx.stdout_behavior = bp::silence_stream();

        bp::child c = bp::launch(exec, args, ctx);

        return 0;
    }
Run Code Online (Sandbox Code Playgroud)

当我运行它时,我得到一些错误:

1>c:\boost_1_54_0\boost\process\detail\pipe.hpp(129): error C2665: 'boost::system::system_error::system_error' : none of the 7 overloads could convert all the argument types
1>          c:\boost_1_54_0\boost\system\system_error.hpp(39): could be 'boost::system::system_error::system_error(int,const boost::system::error_category &,const std::string &)'
1>          c:\boost_1_54_0\boost\system\system_error.hpp(43): or       'boost::system::system_error::system_error(int,const boost::system::error_category &,const char *)'
1>          while trying to match …
Run Code Online (Sandbox Code Playgroud)

c++ boost

5
推荐指数
2
解决办法
2939
查看次数