Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am preparing for technical interview and would like to brush my coding skills. I have written a C++ program and would like to test it online. I don't have access to any linux compiler on my machine. Where can I do it? I have perception that I can do it in -> Google Code Playground

but I don't see where I can choose my compiler.

I have written a simple C hello world program in "edit code" panel and have clicked on "Run code" but it has been a while and nothing appears in bottom output window.

Please help. Thanks,

share|improve this question

closed as off-topic by durron597, GlenH7, MichaelT, gnat, enderland Jun 19 '15 at 13:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Programmers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – durron597, gnat, enderland
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 2 down vote accepted

Use Ideone. I use it all the time when I need to try something out but doesn't have the necessary compiler/interpreter running on my machine. Besides, you can also share your code, which is useful for websites like this one.

share|improve this answer
I only wish they integrated Clang, gcc is good for code generation, but the diagnostic messages uh. – Matthieu M. May 29 '11 at 16:17

Do you really need a Linux machine to access a c++ compiler? On a Windows machine you can install MinGW -- the GNU gcc/g++ compilers for Windows. If you need more of a complete Unix environment as well (grep, sed, awk, the works...) you can install Cygwin - a GNU environment for Windows.

share|improve this answer

Besides the other answers, there are many prebuilt virtual machines that you can use to run an instance of linux. These can be used for a large amount of development against machines you don't have access to.

share|improve this answer

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