DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   Linux compilers (http://www.daniweb.com/forums/thread17437.html)

Acidburn Jan 24th, 2005 9:21 am
Linux compilers
 
Hello,

Can anyone point me the direction of getting a linux verision that comes with a .cpp compiler? so you enter gcpp filename.cpp which compiles the code and runs it in a konsole?

I've got mandrake and Suse siting here....

Cheers

frrossk Jan 24th, 2005 9:47 am
Re: Linux compilers
 
Every linux distribution comes with gcc compiler.
For compiling with gcc at the command line, read http://www.faqs.org/docs/ldev/0130091154_81.htm
If you want an IDE, there is Kdevelop, also included in linux distributions.

dermdaly Jan 24th, 2005 9:47 am
Re: Linux compilers
 
Quote:

Originally Posted by Acidburn
Hello,

Can anyone point me the direction of getting a linux verision that comes with a .cpp compiler? so you enter gcpp filename.cpp which compiles the code and runs it in a konsole?

I've got mandrake and Suse siting here....

Cheers

Most linux distributions come with a c++ compiler. Its invoked as gcc (This is both a c and c++ compiler)

e.g. gcc myprog.cpp -o myprog
./myprog

G'luck

Narue Jan 24th, 2005 11:12 am
Re: Linux compilers
 
>Can anyone point me the direction of getting a linux verision that comes with a .cpp compiler?
g++ comes standard with every Linux distro I know of.

kc0arf Jan 24th, 2005 12:09 pm
Re: Linux compilers
 
Hello,

The question may be if you, or the person that setup linux on your computer, chose to install the C++ environment for you. The selections when setting up linux may be referred to as Development Libraries or Development Tools. You might need to go and add them to your linux environment.

Christian


All times are GMT -4. The time now is 1:19 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC