Support Forums

Full Version: c++ free compiler?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
anyone no a free c++ compiler for win xp 32bit
i use visual C++ 6, It's not free but you can download it and just fill the cdkey box with 1's and it will work.
Dev c++
tried dev c++ but dosen't compile maybe its my code

Code:
#include <iostream>
using namespace std;

int main ()
{
    cout << "Hello World!";
    cout << "i'm a C++ program";
    return 0;
}

but nothing happens somethings flashes on my screen yer BTW i'm very new to all this Tongue

i also go run and compile on Dev c++
If you click run, and it says didn't compile, then there is an error, but if not, then you were successful. If it says not compiled, then look at the box on the bottom, and it will show you any errors, and one which line the error was made on.
Don't use Dev-c++, it's crap.

Instead, use MingW: http://www.mingw.org/

If you need an environment on which to compile with, I suggest Code::Blocks: http://www.codeblocks.org/

There is an option to install MingW with the Code::Blocks installation; if you do this, I would suggest you to install every compiler available.
visual c++ 2010 by microsoft is a favourite of mine.

due to the 32/64 full support.
Visual C++ Express Editions are free.
(08-30-2010, 06:13 PM)Marda Wrote: [ -> ]tried dev c++ but dosen't compile maybe its my code

Code:
#include <iostream>
using namespace std;

int main ()
{
    cout << "Hello World!";
    cout << "i'm a C++ program";
    return 0;
}

but nothing happens somethings flashes on my screen yer BTW i'm very new to all this Tongue

i also go run and compile on Dev c++

Dev C++ works fine.
Its your code
Looking at your code you have no stop in it.. so it runs though then ends. Any compiler would make it do that.
Put cin.get() or something like that before return 0;
That will end it Smile

Dev c++
VisualC++ of DevC++ are both great options.
Pages: 1 2