Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. VS 2005 doesn't give me an .exe file when I build a C++ project

VS 2005 doesn't give me an .exe file when I build a C++ project

Scheduled Pinned Locked Moved Managed C++/CLI
csharpvisual-studiohelpc++dotnet
12 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bwilhite
    wrote on last edited by
    #1

    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

    L B M 3 Replies Last reply
    0
    • B bwilhite

      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

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Hopefully you found it by now. If not, keep looking in the folders it's there, really it is.

      led mike

      B 1 Reply Last reply
      0
      • L led mike

        Hopefully you found it by now. If not, keep looking in the folders it's there, really it is.

        led mike

        B Offline
        B Offline
        bwilhite
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • B bwilhite

          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

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          In the project settings->Linker/General/Output File...what's there? Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          B 1 Reply Last reply
          0
          • B bwilhite

            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

            B Offline
            B Offline
            bwilhite
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • M Mark Salsbery

              In the project settings->Linker/General/Output File...what's there? Mark

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              B Offline
              B Offline
              bwilhite
              wrote on last edited by
              #6

              $(OutDir)\$(ProjectName).exe

              M 1 Reply Last reply
              0
              • B bwilhite

                $(OutDir)\$(ProjectName).exe

                M Offline
                M Offline
                Mark Salsbery
                wrote on last edited by
                #7

                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:

                B 2 Replies Last reply
                0
                • M Mark Salsbery

                  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:

                  B Offline
                  B Offline
                  bwilhite
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • M Mark Salsbery

                    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:

                    B Offline
                    B Offline
                    bwilhite
                    wrote on last edited by
                    #9

                    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

                    B 1 Reply Last reply
                    0
                    • B bwilhite

                      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

                      B Offline
                      B Offline
                      bwilhite
                      wrote on last edited by
                      #10

                      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.

                      L 1 Reply Last reply
                      0
                      • B bwilhite

                        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.

                        L Offline
                        L Offline
                        led mike
                        wrote on last edited by
                        #11

                        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

                        B 1 Reply Last reply
                        0
                        • L led mike

                          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

                          B Offline
                          B Offline
                          bwilhite
                          wrote on last edited by
                          #12

                          Well, coming from C# world...I expected it one place, and evidently my brain decided to see it only if it was in that one place. :laugh: Thanks again.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups