Archived

This topic is now archived and is closed to further replies.

executable

This topic is 4949 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

How do I make my finished C++ source code into and executable that I can give to someone to use? I know in visual basic you just hit create .exe, or something like that.

Share this post


Link to post
Share on other sites
The process you need to go through is slightly different depending on which compiler you''ve used. What compiler are you using?

Share this post


Link to post
Share on other sites
If you ran the program, then there is indeed an executable. Under your project folder, look for Debug and Release folders. Depending on how you built your program, it should be it one (or both) of these folders. Needless to say, only give your friends Release executables

Share this post


Link to post
Share on other sites
The exe file is created when you compile. It should now be in your project folder, in a folder named either "Debug" or "Release" depending on which build configuration you're using.

[edit] Zipster indeed... Less than a minute.

-Arek the Absolute

[edited by - Arek the Absolute on May 31, 2004 8:13:00 PM]

Share this post


Link to post
Share on other sites
The debug version contains special data that lets you use the visual debugger on your code to step through it line-by-line as it executes so you can find what''s broken. It''ll also let you see exactly what line of code the program was executing as it crashes.

Release mode has none of that information, so the EXE is smaller and the program is usually at least a bit faster. But, of course, you can''t run it through the debugger to get any more than the ASM code.

Most of the time, you compile in debug mode as you''re coding a project and only switch to release mode when you deem the executable ready to unleash on the masses.

-Auron

Share this post


Link to post
Share on other sites
short answer:
debug puts information into the exe that helps you, and or the debugger to, uh, debug your code (you know trace it, etc).
release has not the debug information, plus (depending of how did you configured the compiler) it optimizes the exe for better speed or better size.
i''m sure there is more in there, but i don''t know it all
i advice you to browse all the options in the ide and see by yourself what happens.

-----------------------------------------------------------
http://www.exepotes.com.ar

Share this post


Link to post
Share on other sites