-
C++ in linux?
This may sound as an completely stupid question. But I'm really confused.
I want to program in C++ for Linux. I'm using Eclipse now, and I installed the C/C++ Development Tools.
I wanted to compile something really simple:
Code:
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!";
return 0;
}
What should I do to get this to work?
-
I think most Linux distros include the g++ compiler (my Ubuntu has it) already installed. Find a good text editor (I use SCiTE) and compile it with g++
-
Ah, it works now.
Thank you!