Error:ui
E:\boost_1_49_0\libs\regex\build>nmake vc8.makcode
Microsoft (R) Program Maintenance Utility Version 7.00.8882
Copyright (C) Microsoft Corp 1988-2000. All rights reserved.itBuilding Boost.Regex without ICU / Unicode support:
Hint: set ICU_PATH on the nmake command line to point
to your ICU installation if you have one.
cl /c /nologo /ML /W3 /EHsc /O2 /GF /Gy /I..\..\..\ /DWIN32 /DNDEBUG /
D_MBCS /D_LIB /FD /Zc:wchar_t -Y- -Fo./vc80/libboost_regex-vc80-s-1_47/ -Fdvc
80/libboost_regex-vc80-s-1_47.pdb ../src/c_regex_traits.cpp
‘cl’ is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: ‘cl’ : return code ’0×1′
Stop.io
‘cl’ is not recognized as an internal or external command編譯
Solution:file
1.At the command prompt, change to the \bin subdirectory of your Visual C++ installation.程序
2.Run vcvars32.bat by typing VCVARS32.command
D:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin>vcvars32.bat方法
D:\Program Files (x86)\Microsoft Visual Studio 8\VC\bin>」D:\Program Files (x86)\
Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat」
Setting environment for using Microsoft Visual Studio 2005 x86 tools.error
編譯後在程序中使用,會出現一個問題:
Error 1 fatal error LNK1104: cannot open file ‘libboost_regex-vc80-mt-1_49.lib’ ZuiTuServer
初步估計是由於生成的regex庫是1.47版本,而庫是1.49版本形成。
解決方法:
拷貝 libboost_regex-vc80-mt-1_47.lib 文件,將名字修改成 libboost_regex-vc80-mt-1_49.lib 便可。