的Visual Studio 2013(VS120)要求不对Boost库 [英] Visual Studio 2013 (vs120) asks for wrong boost libraries

查看:396
本文介绍了的Visual Studio 2013(VS120)要求不对Boost库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图编译我在Windows 7上的一个项目,使用Visual Studio 2013年我使用cmake安装升压1.53和设置解决方案。

I'm trying to compile one of my projects on Windows 7, using Visual Studio 2013. I've installed Boost 1.53 and setup the solution using cmake.

什么情况是,现在推动的编译库的形式为 libboost _ * - VC120-MT(-gd)-1_53.lib 。在连接器项目选项,输入选项卡下,我已经验证了我需要的库都在那里,而事实上编译器能够正确读取它们。

What happens is that now the compiled libraries of boost are in the form libboost_*-vc120-mt(-gd)-1_53.lib. In the linker project options, under the input tab, I have verified that the libraries that I need are there, and in fact the compiler is able to correctly read them.

然而,出于某种原因,我完全无法理解,连接器也试图找到编译为 vc110 库。例如:

However, for some reason that I absolutely can't understand, the linker is also trying to find libraries compiled as vc110. For example:

error LNK1104: cannot open file 'libboost_filesystem-vc110-mt-gd-1_53.lib'

这是在项目选项中列出的平台工具集的Visual Studio 2013(V120)。我找不到任何的项目选项vc110任何引用。你能帮我明白发生了什么?

The Platform Toolset that is listed in the project option is "Visual Studio 2013 (v120)". I couldn't find any reference to vc110 in any of the project options. Can you help me understand what is happening?

推荐答案

这谢天谢地后解决了我的问题。我没能之前找到它。解决方法是编辑升压/配置/ auto_link.hpp 因为code里面是不是能够处理 VC120 ,并最终建议 vc110

This post thankfully solves my question. I wasn't able to find it before. The solution is to edit the boost/config/auto_link.hpp because the code inside is not able to handle vc120, and ends up suggesting vc110

<一个href=\"http://stackoverflow.com/questions/19817163/how-do-i-specify-which-version-of-boost-library-to-link-to?rq=1\">How我指定,链接到?其中Boost库的版本

How do I specify, which version of boost library to link to?

这篇关于的Visual Studio 2013(VS120)要求不对Boost库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆