#include <iostream>
using namespace std;
int main()
{
cout << "Hello World From About\n";
}
I'm fairly new at C++ and to test it out I wrote the following into the compiler.CodeI saved it as a file named "hello world" and clicked Build>>Compile current file.#include <iostream>
using namespace std;
int main()
{
cout << "Hello World From About\n";
}
As I said I'm really new at this, isnt it suppose to compile into a program?
Yes, I am. The newest one. Should I just download http://download.berlios.de/codeblocks/CB_20060301_rev2102_win32.7z to it? And I don't know how you want me to post the project
No need to post your project file, just change the Compiler logging to "Full command line" under the Other tab of your global compiler settings and copy'n'paste the build log.
Deja vu...
well let's start again from scratch (assuming you are on windows) :So can I just not download it manually because I can't extract .tar.gz. Can't I just download http://prdownloads.sf.net/mingw/MinGW-5.0.2.exe?download instead? And If I do in the installer do I only need MinGW base tools?
1) install Mingw manually (for example in C:\MingW) (below I will post a link on how to do that)
well let's start again from scratch (assuming you are on windows) :So can I just not download it manually because I can't extract .tar.gz. Can't I just download http://prdownloads.sf.net/mingw/MinGW-5.0.2.exe?download instead? And If I do in the installer do I only need MinGW base tools?
1) install Mingw manually (for example in C:\MingW) (below I will post a link on how to do that)
well I have never installed MingW with an installer from MingW itself.
I had it coming on my system twice : the first time with dev-cpp installer, and with Code::Blocks installer.
But the manual install is so much nicer, it is just unzipping, you can really trust it, no registry settings behind your back, you are in full control (well the gdb is with an installer). Really it is worth the effort.
It sounds cumbersome, but once you've done it you'll look back at it, and think, hey that's all. ;-)
[EDIT] : oh oh oh, did I mention the powerfull uninstall, no minutes waiting on add/remove programs, you can just delete the MingW directory and that's it. ;-)