Find the answer to your Linux question:
Results 1 to 4 of 4
Hello Everybody; I'm an ultimate beginnir tolinux.I'm using ubuntu 9.04 gnome version. My question is; How do I compile c++ codes? I downloaded build-essential and gcc through synaptic package manager ...
  1. #1
    Just Joined!
    Join Date
    Oct 2009
    Posts
    2

    compiling c++

    Hello Everybody;

    I'm an ultimate beginnir tolinux.I'm using ubuntu 9.04 gnome version.
    My question is; How do I compile c++ codes? I downloaded build-essential and gcc through synaptic package manager but I cant find anything to write code or to compile.
    I'm still thinking in Windows mind.
    Can u pls help to an ultimate beginnir?

    Thank you

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    You need to write the code using a text editor or IDE. Then compile the code on the command line using g++. It would be beneficial to learn about make and Makefile.

  3. #3
    Just Joined! Nickos's Avatar
    Join Date
    Oct 2009
    Posts
    6
    Code:
    g++ source.cpp -o application
    ./application

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    If you prefer an IDE to a text editor and make files, then I suggest you install Eclipse. It has native support for Java development and plugins for C/C++ as well as just about any other language out there. It will use the gcc/g++/gdb toolset under the covers for compilation, debugging, etc.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...