Page 1 of 1

Code::Blocks

Posted: Wed Oct 15, 2008 6:47 am
by Munaq
:arrow: http://www.codeblocks.org/
Code::Blocks is a free C++ IDE built to meet the most demanding needs of its users. It is designed to be very extensible and fully configurable.

Finally, an IDE with all the features you need, having a consistent look, feel and operation across platforms.

Built around a plugin framework, Code::Blocks can be extended with plugins. Any kind of functionality can be added by installing/coding a plugin. For instance, compiling and debugging functionality is already provided by plugins!

We hope you enjoy using Code::Blocks!

The Code::Blocks Team
Q: How do I make Code::Blocks portable?
A: http://wiki.codeblocks.org/index.php?ti ... ortable.3F

It'll be a nice addition. :D

Posted: Wed Nov 19, 2008 5:59 pm
by Munaq
No replies, too bad.

You should give it a try, it's a pretty good software.

Posted: Thu Nov 20, 2008 12:00 am
by m^(2)
Munaq wrote:No replies, too bad.

You should give it a try, it's a pretty good software.
Its powerful, nice looking and reasonably fast, but it's configuration is strange...It has a lot of in-depth settings, but lacks many basic ones. I couldn't make it work the way I wanted.

Re: Code::Blocks

Posted: Fri Dec 07, 2012 3:03 pm
by Ascend4nt
So they finally released a new version recently - 12.11. I haven't given it a full workout yet, but I've gone through and figured out how to make it portable. It's a bit more of a hassle than for 10.05, but if you want a nice cross-platform cross-compiler development environment, this is really the only good choice (dev-cpp is gcc only).

Site: http://www.codeblocks.org/
Windows downloads: http://www.codeblocks.org/downloads/26#windows
(I've only tested the "codeblocks-12.11-setup.exe" version, but I suspect the one with the included compiler should work the same)

FAQ - Making it portable:
http://wiki.codeblocks.org/index.php?ti ... nd_plugins

Portable Launcher: http://cblauncher.codecutter.org/CbLauncher_1.0.1.zip

Steps:
1. Download the exe and run the install. Do NOT run CodeBlocks yet, otherwise you will need to delete %appdata%\CodeBlocks
2. Copy the CodeBlocks folder from %programfiles%\CodeBlocks to your portable folder.
3. Delete uninstall.exe from the portable folder
4. Uninstall CodeBlocks
5. Open CbLauncher_1.0.1.zip and navigate to CbLauncher\bin\Release, and copy CbLauncher.exe into your portable CodeBlocks folder
6. Launch CbLauncher.exe
7. On the first run: click 'OK' to "Compilers auto-detection" prompt, and click 'No, leave everything as it is' for the "File Associations" prompt.

Note: I DID try using 7-zip and UniExtract on it, but it doesn't extract correctly (some files are left out and the 'template\wizards' folder winds up in $_OUTDIR).

Also, with a quick glance at the source code for CbLauncher, there's a lot of overkill involved. It just needs to set %appdata% and push the parameters to CodeBlocks, but instead it tries to search for fonts to add (which don't exist). It also limits the parameter length to 260 characters which is retarded.. the command line can be up to 32767 characters! Ah well, most should only launch it with one .cbp project at a time anyway.

P.S. I'm a long-term user of this IDE, and while it is a bit of a pain in the ass to set up the different compilers and the options for them, it does turn out to be quite flexible. I have projects that I can now easily set to compile in Microsoft VC++ 2003, 2008, 2010, 2012, GCC/G++, Tiny C Compiler, and Pelles C! (Yes, I'm that crazy)

update: doxygen (if you use it) writes stuff to the registry, though I doubt it affects portability

Re: Code::Blocks

Posted: Fri Dec 07, 2012 3:14 pm
by guinness
I will check this out as I currently have dev-cpp, also I thought you used dev-cpp because I believe I saw your handle attached to the portable launcher.

Re: Code::Blocks

Posted: Sat Dec 08, 2012 12:57 am
by Ascend4nt
guinness wrote:I will check this out as I currently have dev-cpp, also I thought you used dev-cpp because I believe I saw your handle attached to the portable launcher.
I did actually write a portable launcher for dev-cpp (posted on pastebin a while back), but the developer decided to go with his own version. Of course, Orwell's version doesn't work correctly when launched from another folder or when passed file(s) with spaces in them.

I haven't used dev-cpp in a long while, but it looks like it might be worth checking out recent builds due to fixes to debugging. However, code::blocks is also supposed to work correctly with the debugger. (Visual Studio is my debugging platform of choice, though)

If you need help configuring Code::Blocks, let me know. Most of the pain in setting it up is adding library files to link to, and adding the right search directories for the Windows SDK.

edit: I should mention, you'll probably want to make use of the "$(CODEBLOCKS)" macro when setting up relative paths.

Re: Code::Blocks

Posted: Sat Dec 08, 2012 3:48 am
by guinness
My plan is to tackle the configuration this weekend so I may hold you to your offer of help. Plus, it seems I see your user handle everywhere!

Re: Code::Blocks - CppCheck plugin

Posted: Sun Dec 09, 2012 8:01 am
by Ascend4nt
Since CppCheck is a great plugin tool to have alongside Code::Blocks, I'd figure I'd mention how to fix support for it in the IDE (the plugin is there, but not the program). Basically, you just need to download and extract the CppCheck files and put them in the root CodeBlocks folder.

CppCheck Home: http://cppcheck.sourceforge.net/
CppCheck Download: http://sourceforge.net/projects/cppchec ... /cppcheck/
(You'll want the latest MSI installer)

Steps to install:
1. Use UniExtract on the cppcheck MSI file. I chose the default extraction
2. Copy the files from PFiles\CppCheck into the Code::Blocks folder
3. Also, if you are running Code::Blocks where Visual C++ 2010 runtimes aren't installed, copy the PFiles\Win contents to Code::Blocks
4. Optionally delete cppcheck_xx.qm language files. The GUI could probably be removed as well if you don't plan to run it standalone

*Note: cppcheck-GUI writes stuff to the registry

Re: Code::Blocks

Posted: Thu Jan 03, 2013 11:36 am
by guinness
I gave it a try and at present feel it's a little to much for me as I'm only starting out with C/C++.

Code::Blocks Portable

Posted: Fri Jun 07, 2013 6:23 pm
by juvera
At http://codeblocks.codecutter.org/ they say they have a portable version inc. a minGW C/C++ compiler of Code::Blocs ( http://codeblocks.codecutter.org/CodeBlocks-EP.zip ).

Portableapps.com has a paf for the IDE part, but no compiler: http://portableapps.com/node/18671

Re: Code::Blocks Portable

Posted: Fri Jun 07, 2013 7:49 pm
by Ascend4nt
That 'EDU-Portable' is pretty old. Code::Blocks is up to 12.11, and you can download the portable launcher individually - see http://www.portablefreeware.com/forums/ ... 790#p60790

Re: Code::Blocks Portable

Posted: Mon Mar 06, 2017 6:48 am
by joby_toss
Tested codeblocks-16.01-nosetup.zip and codeblocks-16.01mingw-nosetup.zip from: http://www.codeblocks.org/downloads/26
Settings saved to AppData.

Re: Code::Blocks Portable

Posted: Tue Oct 20, 2020 2:12 pm
by juverax
CodeBlocks no-setup v.20.03 is released: http://www.codeblocks.org/downloads/26

Re: Code::Blocks Portable

Posted: Sat Oct 24, 2020 3:38 pm
by webfork
Turns out we had another thread on the topic so I went ahead and merged the two.

---

Also, bit of a personal gripe here, but it's been around since 2014 and they only have two screenshots listed?

http://www.codeblocks.org/screenshots

... especially with the statement right up at the top about "... a consistent look, feel and operation across platforms." That's definitely something to show in screencaps. Sigh.

Re: Code::Blocks Portable

Posted: Tue Feb 13, 2024 3:51 pm
by webfork
Old thread update:

Code::Blocks was last updated in 2020, now at v20.03 and running on Mac/Win/Linux

Changelog: https://www.codeblocks.org/changelogs/
Mirror: https://www.softpedia.com/get/Programmi ... ocks.shtml