2

I have multiple c++ projects with inter dependency. To compile them together I made a batch script. I used below command to compile

 MSBuild.exe "xyz.sln" /p:Configuration=Debug /p:Platform=x64 /t:REBUILD /fileLogger /p:DebugSymbols=true /nr:true 

All projects were getting compiled few months back, but now when I am trying to build them from command prompt build is failing and I am getting dialog box with message

Application was unable to start correctly (0xc000007b). Click OK to close the application. 

and build is failing with below error.

(ClCompile target) ->C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp
.x64.Targets(146,5): error MSB6006: "CL.exe" exited with code -1073741701.

But if I try to compile projects from visual studio 2010 then project is getting compiled successfully.

Is this problem anywhere related to windows updates?

My operating system is Windows7 and application is 64bit. Build is failing in both Debug and Release mode with x64 configuration.

Can anyone suggest a solution for it?

4

1 回答 1

0

PATH 是否在运行 bat 文件的进程中设置正确?有时安装软件会更改路径,我发现从错误的应用程序中找到了通常命名的 DLL。

于 2014-11-04T08:06:56.743 回答