我正在尝试在运行visual studio 2015的Windows上构建curlpp库。我遇到了很多错误,但大多数我修复了除了这个。当我尝试使用命令
构建解决方案时C:\curlpp-0.7.3>msbuild curlpp.VC9.sln /t:Rebuild /p:Configuration=DynamicLibDebugDynamicRTL
我最终得到了错误:
Project : error PRJ0002: Error result -1073741701 returned from 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\cl.exe'.
C:\curlpp-0.7.3\curlpp.VC9.sln] BSCMAKE : error BK1506: cannot open file '.\out\lib\DynamicLibDebugDynamicRTL\Easy.sbr': No such file or directory [C:\curlpp-0.7.3\curlpp.VC9.sln]
和弹出窗口说CL.exe无法启动0xc0000007b
从错误看来它似乎无法打开文件。因为该文件应该在那里构建,所以有意义。我认为CL.exe失败了,这就是真正的问题。我认为这个问题与我混合或设置了错误的路径有关。
我使用的路径如下
X:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64;
X:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK;
但是问题可能是其他地方我不知道这一点。当我从vs9 / amd64文件夹手动运行cl.exe时,它会打开并完美运行。谢谢你的帮助
这是我关注的自述文件:
Open a command prompt and change folder to the root of curlpp tree.
set LIBCURL_PATH=/where/curl/is/installed
set OPENSSL_PATH=/where/openssl/is/installed (only if you have libcurl with ssl support and ssl installed)
msbuild curlpp.sln /t:Rebuild /p:Configuration=<Configuration>
where <Configuration> is one of
- DynamicLibDebugDynamicRTL
- DynamicLibDebugStaticRTL
- DynamicLibReleaseDynamicRTL
- DynamicLibReleaseStaticRTL
- StaticLibDebugDynamicRTL
- StaticLibDebugStaticRTL
- StaticLibReleaseDynamicRTL
- StaticLibReleaseStaticRTL
Output files will be placed in a directory set in CURLPP_LIB_PATH.
Any of DynamicLib* configurations will build a .dll library file and a .lib library import file.
Any of StaticLib* configurations will build the .lib static (inline) library.
Any of *Debug* configurations will in addition build a .pdb Program Database file.