Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What to do when the .exe won't be built.

Status
Not open for further replies.

JimMuglia

Programmer
Jul 19, 2002
4
US
Greetings,

I'm new to VC++, I've mainly programmed in VB, so please be patient.

I want to debug some code. To do so I need the executable, apparently. I am asked if I want to build the executbale. I click "Yes". Then I try to run the executable and it says, once again, that I need to build it. What's funny is that all the object files are built, so why is it that the .exe will not be built? How can I research this? Please give me some clues.

Thank you,
Jim
 
Visual C++ will prompt you to build the executable everytime you change something in the source code. This is normal. To debug, make sure that you have Debug set as your Active configuration by clicking the Build Menu and the Set Active Configuration. Set your breakpoint wherever you want and then hit the F5 key to run until that point. If a change has been made to the code since the last time you built the Debug exe, it will prompt you to rebuild it.

Hope that helps.

John
 
If it's asking you to build every time without actually running the .exe, it may be due to a date discrepancy between the .obj files and your system date. VC++ uses the "modified" date on the .obj files to find out if it needs to rebuild them or not. if you choose "clean" on the "build" menu, the .obj files should be removed so when you build the app again the .obj files will all be recreated and the date problem should be resolved.

CMR
 
Hey Guys,

Thanks for the tips. I think I'm getting the hang of VC++ a little more. Those tips help out a lot.

Thank you,
Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top