Take the 2-minute tour ×

It can be opensource. I need it because I don't want to install virtual machine. So is there any online, html/flash/js based, free C++ (or at least C) compiler that can compile code simulating ubuntu c/c++ compiler and return built executable file to me? I heard that Mozilla had some cool online editors but I don't know if they have compilation options.

share|improve this question
Why does it need to be online? –  Karl Knechtel Dec 6 '10 at 13:30
Writing a C++ compiler in Javascript would be quite fun... NOT! –  David Heffernan Dec 6 '10 at 13:37

3 Answers 3

up vote 1 down vote accepted

Codepad allows you to compile and run code snippets, which is good to quickly test ideas and/or share code quickly among friends; in no way it substitutes a good editor and programming environment.

Plus, in any non-trivial project you need external libraries, I don't know how you would be able to deal with that.

Just get over your laziness and install that virtual machine! I tried Virtualbox recently and it's very easy to set up.

share|improve this answer

I don't think you clearly understand the difference between an editor and a compiler.

An editor cannot compile code. A compiler doesn't help you to edit code. An IDE (Integrated Development Environment) incorporates the features of both an editor and a compiler.

Are you asking if anyone knows of an IDE that can compile for Ubuntu?

What platform do you want it to run on?

share|improve this answer
it also needs to be online:) –  Quamis Dec 6 '10 at 12:29
Yeah, I was ignoring the "online" bit because it didn't make sense to me. Where is the code kept then? On someone else's server? Or do you upload the code? –  AlastairG Dec 6 '10 at 12:33
Yes i Idea was keep it on someones else server=) –  Rella Dec 6 '10 at 15:18
You're obviously a very generous chap to give your code away so freely ;) Now I understand the question. I'm unfamiliar with the idea, so didn't really understand it before. –  AlastairG Dec 6 '10 at 15:26
I think I understand why Kabumbus would want this, I've ran into situation like this before. I'm on a CR48 and sometimes I badly wanted to test out a piece of code but have no access to the desktop pc, an online c/c++ (or whatever) editor that can compile on the server and return result is better than nothing :) –  wliao Aug 21 '11 at 3:53

If you want a portable compiler + IDE, you can just stick mingw and Code::Blocks(C/C++ IDE with syntax highlighting, debugger support, code completion, etc) on a flash drive.

To make Code::Blocks portable, just copy the default.conf file that is usually placed in C:\Documents and Settings[your_user_name]\Application Data\codeblocks, into its directory.

Then download MingW by using the installer right here, and point it at the flash drive.


Now, all you have to do is go into compiler settings and point the MingW directory to the directory where you installed MingW.

share|improve this answer

Your Answer


