6

Right now I'm reinstalling Visual Studio on my workstation, and it's taking forever. Which reminds me I should have a backup environment available.

I'm looking for a portable Integrated Development Environment (IDE) for C and C++ that can be installed in the user folder and run with low priviledges.

It should be quick to install and configure. In particular, it should not require too much work to make it recognize a compiler. It would be nice if it came bundled with a compiler.

Needed features:

  • full support for UTF-8
  • runs on Windows
  • Open-Source and free to use
  • syntax highlighting (recognizing C++11)
  • code completion (at least for the STL)

Very welcome features:

  • runs on Linux
  • code formatting (like the one in Eclipse and Netbeans)
  • refactoring (ability to rename variables)
  • can run on a USB key (must be able to find a compiler)

The (optionally) bundled compiler should be up-to-date. I've seen many IDEs that do not meet this requirement, and come with an old version of GCC (4.8.1). I don't know why, since 4.9 has ben out for months already, and the 4.8 series has hit version 4.8.4 already.

Dev-C++ is lacking UTF-8 support, so please don't even mention it.

  • Did you ever find a solution with GCC 4.9? I would like one too. If not, maybe you can roll your own using CodeBlocks (see my answer below) and wiki.codeblocks.org/… to install 4.9 separately? – Mawg Jun 4 '15 at 14:00
  • Btw, if you go the Cygwin route, see cygwin.wikia.com/wiki/How_to_install_a_newer_version_of_GCC – Mawg Jun 4 '15 at 14:01
  • If you did find a solution, please post it here, in order to help others. Thanks. – Mawg Jan 14 '16 at 9:20
  • 1
    I didn't. Many IDEs with portable versions still ship with an outdated compiler (Code::Blocks) or don't support UTF-8 (Dev-C++). – Agostino Jan 14 '16 at 14:48
  • Thanks for letting us know (+1). You might even want to post that as an answer. Was Netbeans plus Cygwin really out of the question? You might have to compile GCC from source, but this page might help cygwin.wikia.com/wiki/How_to_install_a_newer_version_of_GCC – Mawg Jan 14 '16 at 15:38
3

The easiest free GCC based IDE for Windows is Code::Blocks, which can be portable. But, alas, it doesn't currently have 4.9 - perhaps you could ask on the forums? Or, would you consider using 4.7 or 4.8 to build 4.9 from source & adding that in to whatever solution you choose?

Since you like NetBeans, you can use a portable version, but that leaves you with the problem of a compiler, for which I would recommend Cygwin (and make sure that the compiler is up to date)

Or, you could just create a VM and use portable VirtualBox.

  • 1
    Code::Blocks released an update in January 2016. It offers a sensible zip package with the compiler, the IDE and all its plugins. It ships with GCC 4.9.2 32bits, which is not the latest version, but still an improvement. – Agostino Feb 15 '16 at 14:48
  • Glad to hear that. You seem to be getting closer to a solution. – Mawg Feb 15 '16 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.