VS 2005 doesn't give me an .exe file when I build a C++ project
-
Hopefully you found it by now. If not, keep looking in the folders it's there, really it is.
led mike
Unfortunately it's really not in there. I even thought it might be hidden for some reason, and so made sure hidden files were being shown in explorer...that list from above is what was showing when I went to the folders and did 'dir' on the command line.
-
First, I mainly program in C#, not C++. I hate to have to ask for help with such an elementary question, but I can't find a solution to my problem. I have a simple "hello world" program, which is a CLR console app. Nothing special there. When I run it through Visual Studio, it works just fine. But when I build it, I have no .exe file in my Release or Debug folders. I have these files instead (by the way, I had to re-install my VS a week ago, so it's basically right out of the box as far as any configuration): app.res AssemblyInfo.obj BuildLog.htm HelloWorld2.exe.intermediate.manifest HelloWorld2.obj HelloWorld2.pch mt.dep stdafx.obj vc80.idb vc80.pdb If it would be helpful I can also paste a copy of the BuildLog. Thank-you in advance for any help. BW
In the project settings->Linker/General/Output File...what's there? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
First, I mainly program in C#, not C++. I hate to have to ask for help with such an elementary question, but I can't find a solution to my problem. I have a simple "hello world" program, which is a CLR console app. Nothing special there. When I run it through Visual Studio, it works just fine. But when I build it, I have no .exe file in my Release or Debug folders. I have these files instead (by the way, I had to re-install my VS a week ago, so it's basically right out of the box as far as any configuration): app.res AssemblyInfo.obj BuildLog.htm HelloWorld2.exe.intermediate.manifest HelloWorld2.obj HelloWorld2.pch mt.dep stdafx.obj vc80.idb vc80.pdb If it would be helpful I can also paste a copy of the BuildLog. Thank-you in advance for any help. BW
I have comodo firewall and defense installed on my machine, and if I put the level up high enough, then it tells me that HelloWorld.exe is being executed when I run through the debugger, but after that it's not there...I don't know if that provides a clue or not...here's the build log: Command Lines Creating temporary file "c:\Documents and Settings\Brandon Wilhite\Desktop\Auxiliary Projects\WindowsServiceProofOfConcept\HelloWorld2\Debug\RSP00000138963340.rsp" with contents [ /Od /D "WIN32" /D "_DEBUG" /D "_UNICODE" /D "UNICODE" /FD /EHa /MDd /Yu"stdafx.h" /Fp"Debug\HelloWorld2.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Zi /clr /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.XML.dll" ".\HelloWorld2.cpp" ".\AssemblyInfo.cpp" ] Creating command line "cl.exe @"c:\Documents and Settings\Brandon Wilhite\Desktop\Auxiliary Projects\WindowsServiceProofOfConcept\HelloWorld2\Debug\RSP00000138963340.rsp" /nologo /errorReport:prompt" Creating temporary file "c:\Documents and Settings\Brandon Wilhite\Desktop\Auxiliary Projects\WindowsServiceProofOfConcept\HelloWorld2\Debug\RSP00000238963340.rsp" with contents [ /Od /D "WIN32" /D "_DEBUG" /D "_UNICODE" /D "UNICODE" /FD /EHa /MDd /Yc"stdafx.h" /Fp"Debug\HelloWorld2.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Zi /clr /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.XML.dll" ".\stdafx.cpp" ] Creating command line "cl.exe @"c:\Documents and Settings\Brandon Wilhite\Desktop\Auxiliary Projects\WindowsServiceProofOfConcept\HelloWorld2\Debug\RSP00000238963340.rsp" /nologo /errorReport:prompt" Creating command line "rc.exe /d "_UNICODE" /d "UNICODE" /fo"Debug/app.res" ".\app.rc"" Creating temporary file "c:\Documents and Settings\Brandon Wilhite\Desktop\Auxiliary Projects\WindowsServiceProofOfConcept\HelloWorld2\Debug\RSP00000538963340.rsp" with contents [ /OUT:"C:\Documents and Settings\Brandon Wilhite\Desktop\Auxiliary Projects\WindowsServiceProofOfConcept\Debug\HelloWorld2.exe" /INCREMENTAL /MANIFEST /MANIFESTFILE:"Debug\HelloWorld2.exe.intermediate.manifest" /DEBUG /ASSEMBLYDEBUG /PDB:"c:\Documents and Settings\Brandon Wilhite\Desktop\Auxiliary Projects\WindowsServiceProofOfConcept\debug\HelloWorld2.pdb" /MACHINE:X86 /FIXED:No ".\Debug\AssemblyInfo.obj" ".\De
-
In the project settings->Linker/General/Output File...what's there? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Ok, then "$(OutDir)" is project settings->Configuration properties/General/Output Directory That should give you all the pathname info :) It wouldn't run in the debugger if it wasn't built to an EXE... Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Ok, then "$(OutDir)" is project settings->Configuration properties/General/Output Directory That should give you all the pathname info :) It wouldn't run in the debugger if it wasn't built to an EXE... Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
first, thank you very much for your time... that is shown as "$(SolutionDir)$(ConfigurationName)" So if my solution is HelloWorld, and that's the directory, I'm building for Debug... shouldn't it be in /HelloWorld/Debug/ ? I don't disagree it wouldn't run without having an .exe ....this is just maddening :sigh: BW
-
Ok, then "$(OutDir)" is project settings->Configuration properties/General/Output Directory That should give you all the pathname info :) It wouldn't run in the debugger if it wasn't built to an EXE... Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Ok, here's what I did... I set the directory manually to C:\ and it's there!!! Do you have any idea why it didn't work before? BW
figured it out...changed it to ProjectDir and there it is I hadn't noticed the Debug folder before in my solution directory though...I also had done some release builds, with the same result and also no Release folder in my solution directory....so not sure what's going on there, but it's working now Thanks bunches and bunches Mark...as trivial as it seems, I appreciate it.
-
figured it out...changed it to ProjectDir and there it is I hadn't noticed the Debug folder before in my solution directory though...I also had done some release builds, with the same result and also no Release folder in my solution directory....so not sure what's going on there, but it's working now Thanks bunches and bunches Mark...as trivial as it seems, I appreciate it.
-
bwilhite wrote:
I hadn't noticed the Debug folder before in my solution directory though
Ok, I have to say it. "I told you so" :laugh:
led mike