Error Result 1 Returned From Cmd Exe
Studio Languages , Windows Desktop Development > Visual C++ Question 0 Sign in to vote I keep getting the following error message every time I try to run or build a C++ application in Visual Studio 2005: Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'. It only comes up with a C++ program. VB seems to be fine. I was working on a "Class Library" when it first started so I tried creating a new project. I tried doing a build before doing anything and the error message still came up. Then I tried creating a brand new "Windows Form Application" and running it without any modifications - same error. I tried uninstalling and then reinstalling Visual Studio 2005 - same problem. What do I need to do to get rid of this problem?Build Log Rebuild started: Project: Test3, Configuration: Debug|Win32 Command Lines Creating temporary file "c:\Documents and Settings\Stephen M. Derderian\My Documents\Development .NET\Test3\Debug\RSP00000C39403432.rsp" with contents [ /Od /D "WIN32" /D "_DEBUG" /D "_UNICODE" /D "UNICODE" /FD /EHa /MDd /Yu"stdafx.h" /Fp"Debug\Test3.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Zi /clr:pure /TP /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.XML.dll" ".\Test3.cpp" ".\AssemblyInfo.cpp" ] Creating command line "cl.exe @"c:\Documents and Settings\Stephen M. Derderian\My Documents\Development .NET\Test3\Debug\RSP00000C39403432.rsp" /nologo /errorReport:prompt" Creating temporary file "c:\Documents and Settings\Stephen M. Derderian\My Documents\Development .NET\Test3\Debug\RSP00000D39403432.rsp" with contents [ /Od /D "WIN32" /D "_DEBUG" /D "_UNICODE" /D "UNICODE" /FD /EHa /MDd /Yc"stdafx.h" /Fp"Debug\Test3.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Zi /clr:pure /TP /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll" /FU "c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.XML.dll" ".\stdafx.cpp" ] Creating command line "cl.exe @"c:\Documents and Settings\Stephen M. Derderian\My Documents\Development .NET\Test3\Debug\RSP00000D
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: https://social.msdn.microsoft.com/Forums/vstudio/en-US/871103ca-6015-40ce-8a59-92e47ce68aeb/error-prj0002-error-result-1-returned-from-cwindowssystem32cmdexe?forum=vcgeneral Sign up Problem while building a .dll (Visual C++) up vote 1 down vote favorite I am trying to build a .dll in order to link it to one of my projects. But the build always fails : I got these messages in the output and I don't know what it means. It seems that something is missing, but I couldn't find http://stackoverflow.com/questions/3231739/problem-while-building-a-dll-visual-c what. I am trying to link a Mesher called Netgen http://www.hpfem.jku.at/netgen/ 1>adfront2.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification
1> Creating library D:\Documents\Visual Studio 2008\Projects\converter\/lib\nglib.lib and object D:\Documents\Visual Studio 2008\Projects\converter\/lib\nglib.exp
1>Embedding manifest...
1>Performing Post-Build Event...
1>Environment variable NETGENDIR not found.... using default location!!!
1>POSTBUILD Script for nglib ........
1>Installing required files into XXX\Netgen\windows....\nglib-instNoOCC_Win32 ....
1>File not found - nglib.dll
1>0 File(s) copied
1>POSTBUILD Script for nglib FAILED..... Error copying the nglib DLL into install folder!!!
1>Project : error PRJ0002 : Error result 1 returned from 'C:\Windows\SysWow64\cmd.exe'.
1>Build log was saved at "file://D:\Documents\Visual Studio 2008\Projects\converter\BuildLog_nglib.htm"
1>nglib - 1 error(s), 49 warning(s)
I hope I am clear enough and thank you by advance for your help. c++ visual-studio-2008 dll share|improve this question asked Jul 12 '10 at 19:49 ccote 6111 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote accepted seems this NetGen lib's project wants to run a post-build event in which it tries to copy the main output (the nglib.dll) to the directory NETGENDIR (which
Forum Other .NET Programming .NET Framework .NET Installation and Configuration Issues VS2005 Pro - Error result 1 returned ... (C++) If this is your first visit, be sure to http://forums.codeguru.com/showthread.php?381754-VS2005-Pro-Error-result-1-returned-(C-) check out the FAQ by clicking the link above. You may have to register http://forums.steampowered.com/forums/showthread.php?t=801720 or Login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 2 of 2 Thread: VS2005 Pro - Error result 1 returned ... (C++) Tweet Thread Tools Show Printable Version Email this Page… Subscribe error result to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode March 30th, 2006,03:25 AM #1 [Beer] View Profile View Forum Posts Member Join Date Jan 2004 Posts 51 VS2005 Pro - Error result 1 returned ... (C++) Hi! I believe this is problem in configuration, so I put this here. All my C++ projects have same problem (Win32, Win32 Console App, MFC based App) Code: #include error result 1
Threads and Posts My Posts My Threads Steam Game Discussions # - C D - G H - L M - P Q - S T - Z Publisher / Developer Console Game Discussions Go to Page... Thread Tools Display Modes 02-12-2009, 05:36 PM #1 dragondx11 Guest Posts: n/a Compiling Error Sorry for taking up your time but when i try to compile my project i get the error 1>Project : error PRJ0002 : Error result 255 returned from 'C:\Windows\system32\cmd.exe'. What does this mean and how do i fix it? Thanks. --It happens for both client and server 02-12-2009, 06:27 PM #2 5741K3R Guest Posts: n/a What do you want to compile? And which compiler do you have? Visual C++ Express 2008? >> http://developer.valvesoftware.com/w...g_under_VS2008 5741K3R 02-12-2009, 06:36 PM #3 dragondx11 Guest Posts: n/a i want to compile Server and Client Im using VC++ 2008 and ive read through that doc...also im using ep 1 code 02-12-2009, 10:25 PM #4 dragondx11 Guest Posts: n/a If this helps here is the full compile >------ Build started: Project: client_hl2, Configuration: Release HL2 Win32 ------ 1>Copying to destination folder 1> 1 file(s) copied. 1>The syntax of the command is incorrect. 1>Project : error PRJ0002 : Error result 255 returned from 'C:\Windows\system32\cmd.exe'. 1>Build log was saved at "file://c:\HL 2 Breaking the Law\src\cl_dll\Release HL2\BuildLog.htm" 1>client_hl2 - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 02-13-2009, 01:41 AM #5 5741K3R Guest Posts: n/a Sure u fixed file copying ? For me it works fine.. 02-14-2009, 08:05 PM #6 dragondx11 Guest Posts: n/a i went through it and did find the copy errors... Thanks i probly wouldn't have went through the code again if you didnt remind me to fix it. as i said before sorry for taking up your time with my noobish question. Thank-you 5741K3R. 02-14-2009, 09:44 PM #7 benjy355 Join Date: Dec 2005 Reputation: 0 Posts: 144 You shouldn't have to actually fix the file copy errors... I sure didn't... either way, the compile isn't failing, if you want to dig through the folders and find the compiled dll files you can still use them. benjy355 View Public Profile Search User Find