Code::Blocks Forums

User forums => Help => Topic started by: godsenddeath on June 13, 2007, 08:10:57 pm

Title: release build
Post by: godsenddeath on June 13, 2007, 08:10:57 pm
hey,  i'm new to C++, and even newer to this compiler and i'm wondering how i would ebable "release mode"  or the equivelent.


thanks
Title: Re: release build
Post by: Morphius Faydal on June 13, 2007, 08:26:16 pm
I'll address these questions in reverse order.

"Release mode or its' equivalent"
http://www.codeblocks.org/downloads.shtml    <-- Read that, it explains the current development cycle, and how to get what is currently considered a "release"

Being new to C++:
Go out and buy a book.  This (http://www.amazon.com/C%2B%2B-How-Program-5th/dp/0131857576/ref=pd_bbs_2/105-9859018-8414868?ie=UTF8&s=books&qid=1181758845&sr=8-2) is a good one.  As is this one. (http://www.amazon.com/Learning-C%2B%2B-Hands-Approach/dp/053438966X/ref=pd_bbs_sr_1/105-9859018-8414868?ie=UTF8&s=books&qid=1181758845&sr=8-1)

For some online stuff; CPlusPlus.com (http://www.cplusplus.com/doc/tutorial/) has a decent tutorial, and for programming questions, </dream.in.code> (http://www.dreamincode.net/home/) is a good forum.

Coincidently, a quick Google search could have found you more than enough C++ tutorials for people who've never code, people who're coming from another language, or however you want.

Also, actually reading a projects website and/or searching it's forums is usually a good idea before making a post on a topic that has been approached so many times before that the mods get a little bent out of shape.

Just a little word of caution.
Title: Re: release build
Post by: godsenddeath on June 13, 2007, 08:52:42 pm
thanks alot for the help,  what i meant by "release" was that i just wrote my first game,  and i need amke a release build that includes the DLLs(i'm using SDL)

i was told that to send someone the .exe i'd have to bundle it with the DLL's of the libraries i was using,  and  that there's probobly a "release mode" that does this when it compiles 
Title: Re: release build
Post by: Morphius Faydal on June 13, 2007, 09:27:33 pm
See the attached screenshot... That'd be the best I can tell ya.

Then you run 'Build' again, and zip and send your friend all the files in %project_root%/bin/Release

Everything should be in there, including the SDL libs you need.

[attachment deleted by admin]
Title: Re: release build
Post by: Geoffles on June 13, 2007, 10:23:35 pm
If i understand you correctly, you essentially want to package your compiled program with all the neccesary libraries and your actual compiled code.

Ive sent stuff to other people that use my program, and a library, say SDL to other people by simply sending all relevant exes, dlls and possibly images you may need in something like a zip file.

I dont know if a packaging tool exists, but in my oppionion you probably dont need one.

Also you might want to send your release compiled version since the default release settings are to perform the slower optimisations and not include the debugging symbols.

Hope that answers your question