Can't find .exe file

May 11, 2010 at 2:33am
I use Visual C++ on Windows 7, and I did a thing like Hello World, and when I build solution it succeeds. However, I cannot find the .exe of the project so I can open my program and see what it does. I have searched everywhere.

Can someone please help me? Thanks in advance!
May 11, 2010 at 2:34am
And I take it you didn't see a button in VC++ that had a play button or something labeled "Run"?

-Albatross
May 11, 2010 at 2:40am
It was labeled "Debug", and when I click it, it asks for

Link to image: http://i914.photobucket.com/albums/ac343/leobreaker786/DoesntWork.png
May 11, 2010 at 2:44am
Well, then in that case try saving your program to a directory where you know where everything is. If you still can't find the executable, check where your program is saving the compiled result (possibly under options?).

-Albatross
May 11, 2010 at 2:54am
http://i914.photobucket.com/albums/ac343/leobreaker786/CantFind.png

This is the only place it could be, as everything is saved here. I even did a system search.

Yet there is no .exe file? Maybe it's not saving...?
May 11, 2010 at 2:58am
Hmm. Try installing VC++ Express 2010, or reinstalling 2008.

-Albatross
May 11, 2010 at 3:06am
That's rather strange. It should be in the debug folder.
May 11, 2010 at 3:28am
Do you recommend any compilers that work for windows 7?

I'll try to see if it works by reinstalling 2008, but I don't think I can download the 2010 one because it is more than 2GB, and my internet is very slow.
May 11, 2010 at 3:36am
MinGW...
http://www.mingw.org/

-Albatross
May 11, 2010 at 3:52am
Sigh, it doesn't work because I can't find the icon to open the application and when I try to follow instructions on how to install it, that doesn't work either.

Any ideas?
May 11, 2010 at 4:02am
What, you mean MinGW?

-Albatross
May 11, 2010 at 4:15am
Looks like a corrupted executable to me. Try rebuilding.

Little piece of advice: you do NOT want to hide filename extensions while programming. A coworker once made a stupid mistake with that and wasted thirty minutes debugging a correct program.
May 11, 2010 at 4:16am
I got Dev C++ to work.

BUT ARGHHHHH! The program I copied from a tutorial doesn't work! I feel like giving up; I can't even get one right!

http://i914.photobucket.com/albums/ac343/leobreaker786/DOESNTWORK-1.png
Last edited on May 11, 2010 at 4:49am
May 11, 2010 at 5:21am
Looks like you have more than one MinGW installation in your system.
May 11, 2010 at 5:45am
@ above

Are you talking about my MinGW not working or the Dev C++ not working?
May 11, 2010 at 3:41pm
DevC++ uses MinGW. Uninstall all your compilers and IDES, and reinstall Visual Studio. If I remember correctly, Dev C++ is quite backwards.

-Albatross
May 12, 2010 at 3:57pm
Did that, works fine now.

Thanks so much Albatross, archaic and helios.
Topic archived. No new replies allowed.