Jump to content
  • Advertisement
Sign in to follow this  
johnnyBravo

Visual c++ 2003/2005 how to stop compiler from generating all those other files?

This topic is 4957 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm using visual c++ 2005, I was wondering if it is possible to stop the compiler from generating all those other files. eg All I want is the .exe file, but I also get about 15megs worth of other stuff. Is there anyway to stop that?

Share this post


Link to post
Share on other sites
Advertisement
Since it's using most of those files during the build, the best solution I can think of is to go into the project settings and set up a post-build event to delete the intermediate build files.

Share this post


Link to post
Share on other sites
The other files you speak of are necessary for the build process. Telling the compiler not to make .obj files and whatnot means you won't end up with an EXE. It is trivial to copy the EXE out of that folder when you want to make a release.

Share this post


Link to post
Share on other sites
It is possible to specify a different directory for the output files - you can adjust it under Linker options.

I personally have a "bin" directory within the project directory where the .exe/.dll files are copied to, this is especially useful for projects like games which most likely have some data associated with it. Having all your data/executables in a single place makes development a lot more organised. All you have to do then is delete the Release and Debug folders as all they'll contain is useless intermediate files.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!