Sign in to follow this  
johnnyBravo

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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this