Thread: C++ in linux?

  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    16

    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?

  2. #2
    Beginner in C++
    Join Date
    Dec 2007
    Posts
    34
    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++
    Ubuntu Linux / Vista Home Premium (for games)
    SCiTE text editor, G++ compiler

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    16
    Ah, it works now.
    Thank you!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thinking of upgrading to linux...
    By Yarin in forum General Discussions
    Replies: 37
    Last Post: 07-24-2009, 11:40 AM
  2. Wireless Network Linux & C Testbed
    By james457 in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-11-2009, 11:03 AM
  3. Dabbling with Linux.
    By Hunter2 in forum Tech Board
    Replies: 21
    Last Post: 04-21-2005, 04:17 PM
  4. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM