Thread: C++ Compiler
View Single Post
  #5 (permalink)  
Old 11-18-2007, 07:45 AM
Bench Bench is offline
Full Programmer
Join Date: Jul 2007
Location: UK
Posts: 116
iTrader: (0)
Bench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished road
Quote:
Originally Posted by MrPickle View Post
I don't know if it's called a compiler. Something that shows what some code does, say I done the Hello world thing, it would show me "Hello World".
There's actually 2 stages to what you're asking here. One cannot simply take code and directly see output from that code (C/C++ is not a scripting language like HTML/JavaScript/ASP/etc).

- First of all, you need a compiler which translates your program into machine code. Once you have run the compiler (And assuming the compilation was successful) you should have a standalone runnable program. Compilers are different depending on your O/S. If you run Linux/unix, you should already have GCC installed. For windows, you can download MinGW, which is a windows port of GCC

If you prefer, you could pick an IDE (Integrated Development Environment) which will automate the compile/run process. (Most IDE's that I know of come with a compiler)
For windows, use something like Code::Blocks, Visual Studio, Dev-C++ or Quincy.
Under *nix, I believe Eclipse is pretty good.

(Edit - All of these apps are easily found on google)

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by Bench : 11-18-2007 at 07:50 AM.
Reply With Quote
The Following 2 Users Say Thank You to Bench For This Useful Post:
HelloWorld (11-18-2007), MrPickle (11-19-2007)