升压链接时,Visual Studio和放大器;版本控制 [英] Boost linking, Visual Studio & version control

查看:95
本文介绍了升压链接时,Visual Studio和放大器;版本控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Visual Studio 2008和C来写一些东西++。我使用的是Boost库(即的的头只)。

I'm using Visual Studio 2008, and writing some stuff in C++. I'm using a Boost library (that is not header only).

所以,链接到升压需要一个补充,以提高二进制文件到该项目的附加链接路径设置的目录。

So, linking to Boost requires one to add the directory to Boost binaries to the project's "additional linker paths" setting.

然而,不与源代码控制这个矛盾呢?如果我在项目文件检查,也不会绝对路径,加大对库的我的电脑也被包含在其中?

However, doesn't this conflict with source control? If I check in the project files, wouldn't the absolute path to Boost libs on my computer also be included in them?

我显然不希望这样的事情发生,所以我应该怎么办?只是增加了Boost目录的Visual C ++目录/库不​​工作。

I obviously don't want this to happen, so what should I do? Just adding the Boost directory to "Visual C++ Directories/Libraries" doesn't work.

推荐答案

添加升压路径的Visual C ++目录的的工作。
您应该添加包含路径<全路径这里> \\ boost_1_39_0 (结尾没有提升)

和库路径<全路径此处方式> \\ boost_1_39_0 \\ bin.v2 \\ lib中(bin.v2是一个舞台DIR这可能是你在不同的情况下)

Adding the Boost paths to "Visual C++ Directories" should work. You should add include path <Full path here>\boost_1_39_0 (no boost at the end)
and library path <Full path here>\boost_1_39_0\bin.v2\lib (bin.v2 is a stage dir that could be different in you case).

我个人升压源存储在我的源代码控制,并在项目设置使用相对路径。

Personally, I store boost sources in my source control and use relative paths in project settings.

这篇关于升压链接时,Visual Studio和放大器;版本控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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