Re: Linux C++ compiler

2010-01-31 Thread Tony Nelson
On 10-01-31 05:28:56, Joachim Backes wrote: > On 01/31/2010 10:19 AM, Kevin Kofler wrote: > > Patrick O'Callaghan wrote: > >> Type "info g++" at a console window. Take the time to learn how to > use > >> "info" as you'll find it useful, especially for Gnu software. > > > > Alternatively, try info:g

Re: Linux C++ compiler

2010-01-31 Thread Kevin Kofler
Peter Langfelder wrote: > g++ -o executable program.cc It's a bad idea to use g++ or gcc with no optimization switches as the default is no optimization whatsoever. Please use at least -Os (optimize for size) or -O2 (optimize for speed (at "level 2"), which is what Fedora is using). You'll pro

Re: Linux C++ compiler

2010-01-31 Thread Suvayu Ali
On Sunday 31 January 2010 02:28 AM, Joachim Backes wrote: > On 01/31/2010 10:19 AM, Kevin Kofler wrote: >> Patrick O'Callaghan wrote: >>> Type "info g++" at a console window. Take the time to learn how to use >>> "info" as you'll find it useful, especially for Gnu software. >> >> Alternatively, try

Re: Linux C++ compiler

2010-01-31 Thread Joachim Backes
On 01/31/2010 10:19 AM, Kevin Kofler wrote: Patrick O'Callaghan wrote: Type "info g++" at a console window. Take the time to learn how to use "info" as you'll find it useful, especially for Gnu software. Alternatively, try info:g++ in a Konqueror window. :-) firefox too supports "info:g++" :

Re: Linux C++ compiler

2010-01-31 Thread Kevin Kofler
Patrick O'Callaghan wrote: > Type "info g++" at a console window. Take the time to learn how to use > "info" as you'll find it useful, especially for Gnu software. Alternatively, try info:g++ in a Konqueror window. :-) For the console, you might prefer pinfo to info. (It uses the more intuitive

Re: Linux C++ compiler

2010-01-24 Thread Gilboa Davara
On Sun, 2010-01-24 at 15:48 -0500, Matt Smith wrote: > after typing g++ gedit_file.cc i get a filed name a.out in the same > folder that is locked. where do i go from here? thanks You're missing the output filename: $ gcc source_filename.cc -o output_filename Where output_filename is name of t

Re: Linux C++ compiler

2010-01-24 Thread Marko Vojinovic
On Sunday 24 January 2010 20:48:40 Matt Smith wrote: > On Sun, Jan 24, 2010 at 1:51 PM, Peter Langfelder < > peter.langfel...@gmail.com> wrote: > > On Sun, Jan 24, 2010 at 10:41 AM, Matt Smith wrote: > > > using the gcc-c++ compiler can someone provide a simple 3 or 4 step > > > > example > > > >

Re: Linux C++ compiler

2010-01-24 Thread Frank Cox
On Sun, 2010-01-24 at 15:48 -0500, Matt Smith wrote: > after typing g++ gedit_file.cc i get a filed name a.out in the same > folder that is locked. What do you mean by "locked"? It should be an executable file. Type this to run it: ./a.out If you want an executable file named something other

Re: Linux C++ compiler

2010-01-24 Thread David Christopher Chipman
Matt Smith wrote: > after typing g++ gedit_file.cc i get a filed name a.out in the same folder > that is locked. where do i go from here? thanks > > On Sun, Jan 24, 2010 at 1:51 PM, Peter Langfelder < > peter.langfel...@gmail.com> wrote: > > >> On Sun, Jan 24, 2010 at 10:41 AM, Matt Smith wro

Re: Linux C++ compiler

2010-01-24 Thread Marko Vojinovic
On Sunday 24 January 2010 18:04:28 Patrick O'Callaghan wrote: > On Sun, 2010-01-24 at 12:58 -0500, Matt Smith wrote: > > Can anyone recommend a good C++ compiler for Linux, I am very new to > > Linux (very very new). Does Fedora 12 come with one? In Windows i > > used to write programs using borl

Re: Linux C++ compiler

2010-01-24 Thread Matt Smith
after typing g++ gedit_file.cc i get a filed name a.out in the same folder that is locked. where do i go from here? thanks On Sun, Jan 24, 2010 at 1:51 PM, Peter Langfelder < peter.langfel...@gmail.com> wrote: > On Sun, Jan 24, 2010 at 10:41 AM, Matt Smith wrote: > > using the gcc-c++ compiler

Re: Linux C++ compiler

2010-01-24 Thread Patrick O'Callaghan
On Sun, 2010-01-24 at 13:27 -0500, Matt Smith wrote: > thanks, i will need a development environment as well, but anyway my > system says that it is already installed. would you be able to direct > me to where it might be located and how i can access it, thanks again Type "info g++" at a console

Re: Linux C++ compiler

2010-01-24 Thread Peter Langfelder
On Sun, Jan 24, 2010 at 10:41 AM, Matt Smith wrote: > using the gcc-c++ compiler can someone provide a simple 3 or 4 step example > as to how i use the compiler (in the terminal) to compile a program i wrote > and saved in a gedit file?  thanks. > g++ -o executable program.cc to execute: ./exe

Re: Linux C++ compiler

2010-01-24 Thread Matt Smith
using the gcc-c++ compiler can someone provide a simple 3 or 4 step example as to how i use the compiler (in the terminal) to compile a program i wrote and saved in a gedit file? thanks. On Sun, Jan 24, 2010 at 1:27 PM, Matt Smith wrote: > thanks, i will need a development environment as well,

Re: Linux C++ compiler

2010-01-24 Thread Matt Smith
thanks, i will need a development environment as well, but anyway my system says that it is already installed. would you be able to direct me to where it might be located and how i can access it, thanks again On Sun, Jan 24, 2010 at 1:04 PM, Patrick O'Callaghan wrote: > On Sun, 2010-01-24 at 12:

Re: Linux C++ compiler

2010-01-24 Thread Athmane Madjoudj
On Sun, Jan 24, 2010 at 7:11 PM, Athmane Madjoudj wrote: > On Sun, Jan 24, 2010 at 6:58 PM, Matt Smith wrote: >> Can anyone recommend a good C++ compiler for Linux, I am very new to Linux >> (very very new).  Does Fedora 12 come with one?  In Windows i used to write >> programs using borlands dos

Re: Linux C++ compiler

2010-01-24 Thread Frank Cox
On Sun, 2010-01-24 at 13:34 -0430, Patrick O'Callaghan wrote: > Note that this is exactly what you asked for, a C++ compiler. If > actually want a development environment there are several, e.g. > Kdevelop under KDE. I use and highly recommend geany; it's a really nice programmer's editor. -- M

Re: Linux C++ compiler

2010-01-24 Thread Athmane Madjoudj
On Sun, Jan 24, 2010 at 6:58 PM, Matt Smith wrote: > Can anyone recommend a good C++ compiler for Linux, I am very new to Linux > (very very new).  Does Fedora 12 come with one?  In Windows i used to write > programs using borlands dos console compiler and Dev-C++.  It would great to > get a recom

Re: Linux C++ compiler

2010-01-24 Thread Patrick O'Callaghan
On Sun, 2010-01-24 at 12:58 -0500, Matt Smith wrote: > Can anyone recommend a good C++ compiler for Linux, I am very new to > Linux (very very new). Does Fedora 12 come with one? In Windows i > used to write programs using borlands dos console compiler and Dev-C > ++. It would great to get a rec

Re: Linux C++ compiler

2010-01-24 Thread Andras Simon
On 1/24/10, Matt Smith wrote: > Can anyone recommend a good C++ compiler for Linux, I am very new to Linux > (very very new). Does Fedora 12 come with one? In Windows i used to write > programs using borlands dos console compiler and Dev-C++. It would great to > get a recommendation for a good

Re: Linux C++ compiler

2010-01-24 Thread Helder
g++ On Sun, Jan 24, 2010 at 3:58 PM, Matt Smith wrote: > Can anyone recommend a good C++ compiler for Linux, I am very new to Linux > (very very new). Does Fedora 12 come with one? In Windows i used to write > programs using borlands dos console compiler and Dev-C++. It would great to > get a

Linux C++ compiler

2010-01-24 Thread Matt Smith
Can anyone recommend a good C++ compiler for Linux, I am very new to Linux (very very new). Does Fedora 12 come with one? In Windows i used to write programs using borlands dos console compiler and Dev-C++. It would great to get a recommendation for a good one in Linux and how to install it. Th