如何建设
ERROR: Cannot determine the location of the VS Common Tools folder.
<>><>EDIT:
如何建设
ERROR: Cannot determine the location of the VS Common Tools folder.
<>><>EDIT:
我设法通过采取这些步骤来加以建设:
它确实产生了许多警告,即无法发现工具包版本,但它却取得了任何进展。
<>Update: 我创建了Gite Hub repo,称为cclibs。 这使得建设博恩和其他一些C++图书馆更加简单。
This answer works beautifully for:
VS2012
(Visual Studio 2012 Update 2)
VS2015
(Visual Studio 2015 Update 2)In a nutshell
All Programs..Microsoft Visual Studio 2012..Visual Studio Tools..x64 Native Tools Command Prompt
.boost_1_53_0.zip
to C:oost153
.bootstrap.bat
bjam.exe
http://www.ohchr.org。
All Programs..Microsoft Visual Studio 2012..Visual Studio Tools..x64 Native Tools Command Prompt
.cd c:oost153
.bootstrap.bat
.bjam.exe
. This builds all of the libraries.在大约5分钟后完成编辑工作时,它指出:
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
C:/boost153
The following directory should be added to linker library paths:
C:oost153stagelib
This is important, we will need to add these two paths to any new C++ project.
C:/boost153
to the compiler include path
and C:oost153stagelib
to the linker library path
. Properties
, select Configuration Properties..VC++ Directories
. See the two portions of bolded text in the screenshot below):
让我们实施一个简单的方案,通过增加对<条码><<>foreach的路程:
// Source code below copied from:
// http://www.boost.org/doc/libs/1_53_0/doc/html/foreach.html
#include "stdafx.h"
#include <string>
#include <iostream>
#include <conio.h> // Supports _getch()
#include <boost/foreach.hpp>
int main()
{
std::string hello( "Hello, world!" );
BOOST_FOREACH( char ch, hello )
{
std::cout << ch;
}
_getch();
return 0;
}
结果:
Hello, world!
查阅<代码>Win10 x64+Boost v1.6.0
。
boot。
bjam.exe -toolset=msvc-11
检查你的安装正确无误,确认以下指挥单位的产出:
C:>echo %VS110COMNTOOLS%
C:Program Files (x86)Microsoft Visual Studio 11.0Common7Tools
http://landoftheninja.blogspot.com/201111/udio-c-11-and-boost.html
不要错过其处理自动连接问题的后续员额。
vs2012 ERROR: Cannot决定VS通用工具夹的位置。
vcvarsall.bat need call a "reg.exe" which in "C:windowssystem32". if not in search path,will cause this error.
加上C:Wooowssystem32至 %PATH%将解决这一问题。
除上述答复外,我还发现BlueGo真正有助于与MSVC 10/11/12建立强化版本。 你们可以选择不同的组合,而只是选择建设,而是trick。
I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...
I have been searching for sample code creating iterator for my own container, but I haven t really found a good example. I know this been asked before (Creating my own Iterators) but didn t see any ...
Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...
I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?
Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...
Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...
I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...
Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?