MSB building error - visual-studio

Could you please let me know what can be the reason for the following error:
Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code -1073741515.
I am building my C project in the microsoft visual studio 2010.
thanks
[EDIT]
Following is the total error msg
>Build started 7/5/2011 9:33:32 AM.
1>InitializeBuildStatus:
1> Touching "Debug\final_version.unsuccessfulbuild".
1>CustomBuild:
1> Performing Custom Build Tools
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code -1073741515.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.07
I am not using QT and others but I am using custome build to make the parser compatible for the windows. Those parsers were coded for unix flatform.I am using bison and flex for
getting the grammer useful for windows. After getting those grammar, I am trying to build the project with custome building the lex and yacc files.

This is because your custom build EXE is failing to start. In my case, the EXE was finding an old version of a DLL that was incompatible. I was getting the exact same error message, "code -1073741515" and all. I updated the DLL next to the EXE and the problem was solved.

Related

LNK1181: Visual Studio cannot find object file

I am using Microsoft Visual Studio Professional 2017 15.9.29 when compiling a project.
Compilation goes well, but linker shows an error
LINK : fatal error LNK1181: cannot open
"H:\work\build\Release_x64\intermediate\plugin\Helper.obj"
I checked the file. It does not exist. Any reasonable thought would be helpful.
/P compiler option was on, and object files were not generated.

Error in visual studio 2012 (They were build errer)

I'm new at Visual studio 2010
When I hit "start debugging(F5)" obviously it says: "would you like to build it?"
then I push yes button and it is says:"There were build error. Would you like to continue and run the last successful build?"
then I hit yes button and it says: "Unable to start program c:\users\My computer\documents\visual studio 2010\projects\tutorial1\Debug\tutorial.exe"
here is the Output:
1>------ Build started: Project: tutorial1, Configuration: Debug Win32 ------
1>InitializeBuildStatus:
1> Touching "Debug\tutorial1.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.13
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I don't know how to solve this problem. Can anyone help me?
To Answer:
then I hit yes button and it says: "Unable to start program
c:\users\My computer\documents\visual studio
2010\projects\tutorial1\Debug\tutorial.exe"
This is the case where Visual Studio would try to launch the output of the previous build.
Visual Studio would try to launch the output of the StartUp project from the current Configuration (Debug/Release) output folder.
In your case "c:\users\My computer\documents\visual studio 2010\projects\tutorial1\Debug\tutorial.exe" that was built during the last build operation would have been deleted.
The deletion could have happened as part of Clean operation.
Note: Rebuild would run Clean and Build.
Based on the error posted:
Error 'LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt' after installing Visual Studio 2012 Release Preview

Compilation error while building chromium

I am trying to build chromium on Windows 7 64 bit using VS2010.
I am getting error in building webkit.Here is error
1>------ Build started: Project: generate_supplemental_dependency, Configuration: Debug Win32 ------
1>Build started 11/11/2012 12:22:17 AM.
1>InitializeBuildStatus:
1> Touching "../../../../..\build\Debug\obj\generate_supplemental_dependency\generate_supplemental_dependency.unsuccessfulbuild".
1>CustomBuild:
1> Resolving [Supplemental=XXX] dependencies in all IDL files
1> 6 [main] perl 5908 child_copy: linked dll data write copy failed, 0xD2A000..0xD49C48, done 0, windows pid 5972, Win32 error 487
1> Can't call method "fileName" without a package or object reference at ../bindings/scripts/IDLParser.pm line 113.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 255.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:09.56
2>------ Build started: Project: webcore_bindings_sources, Configuration: Debug Win32 ------
2>Build started 11/11/2012 12:22:27 AM.
2>InitializeBuildStatus:
2> Touching "../../../../..\build\Debug\obj\webcore_bindings_sources\webcore_bindings_sources.unsuccessfulbuild".
2>CustomBuild:
2> HTMLEntityTable
2> Running call "C:\chrome\src\third_party\WebKit\Source\WebCore\WebCore.gyp\..\..\..\..\..\third_party\cygwin\setup_env.bat"
2> make: *** No rule to make target `/cygdrive/c/chrome/src/build/Debug/\obj\global_intermediate\supplemental_dependency.tmp', needed by `/cygdrive/c/chrome/src/build/Debug/\obj\global_intermediate\webcore\bindings\V8SpeechRecognitionEvent.cpp'. Stop.
2> make: *** No rule to make target `/cygdrive/c/chrome/src/build/Debug/\obj\global_intermediate\supplemental_dependency.tmp', needed by `/cygdrive/c/chrome/src/build/Debug/\obj\global_intermediate\webcore\bindings\V8SpeechRecognitionEvent.cpp'. Stop.
2> HTMLNames, and also WebKitFontFamilyNames, and also SVGNames, and also MathMLNames, and also XLinkNames, and also XMLNSNames, and also XMLNames
2> Failed to read names from file: C:/chrome/src/third_party/WebKit/Source/WebCore/html/HTMLTagNames.in at C:\chrome\src\third_party\WebKit\Source\WebCore\dom\make_names.pl line 290.
2> Traceback (most recent call last):
2> File "scripts/action_makenames.py", line 185, in <module>
2> File "scripts/action_makenames.py", line 167, in main
2> AssertionError
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
2>
2>Build FAILED.
I search this error a lot on net and most of the solutions were related to cygwin rebasing.
they have mentionded to use following commad to rebase cygwin
ash.exe rebaseall
But I am not able to find ash or rebase all in cygwin director in third_party/cygwin folder.
Any idea about this error?
This error indicates that your cygwin installation does not contain (d)ash package. The best way to install cygwin with all the dependencies need for chrome is to run the cygwin-downloader.py.
This will install all the required dependencies, including ash.
Or else if you prefer to install ash.exe only, run the setup search for package dash include this package and proceed with the setup.

USBView Compile Error

I just downloaded the USBView sample application, and I'm getting a cryptic error when compiling with Visual Studio 2010.
1>------ Rebuild All started: Project: usbview, Configuration: Win8 Debug Win32 ------
1>Build started 10/5/2012 11:58:11 AM.
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5):
error MSB8008: Specified platform toolset
(WindowsApplicationForDrivers8.0) is not installed or invalid. Please
make sure that a supported PlatformToolset value is selected.
1>
1>Build FAILED.
1> 1>Time Elapsed 00:00:00.16
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Any thoughts or ideas to resolve this would be appreciated. I'm using Windows 7, 32-bit.
I was able to resolve the problem by installing Visual Studio 2012 Express and recommended components, removing the offending line from the Microsoft.Cpp.Platform.targets file (double-clicked error message), and compiling as Release.

Visual Studio 2010 new project wizard manufactured MFC Dialog program doesn't compile in Debug Mode?

I've created a new project using the Visual Studio 2010's wizard. Once VS was finished generating the project I tried building it - in release mode it worked great, but in debug mode it didn't, giving the following compiler error:
1>------ Build started: Project: MyProj, Configuration: Debug Win32 ------
1>Build started 05/10/2010 22:17:08.
1>InitializeBuildStatus:
1> Touching "Debug\MyProj.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> All outputs are up-to-date.
1>ResourceCompile:
1> All outputs are up-to-date.
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>LINK : fatal error LNK1104: cannot open file 'D:\My Documents\Dev\MyProj\MyProj\Debug\MyProj.exe'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.24
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I set the following parameters in the wizard:
MFC Application
Dialog based
Use MFC in a static library
Added the "Windows Sockets" advanced feature
I'm on a Windows 7 64bit Ultimate machine.
This seems like a minor bug in Visual Studio 2010. Once I closed the solution and reopened it, it worked fine...
This error is reproducible on my setup.

Resources