Hi Kathleen,

I use the compiler that comes with Mandrake which is also the same one in
Redhat and the others. If it's C you're programming in invoke 'gcc', if
you're doing C++ use 'g++'. Although actually either one will work for
both C and C++. I've gotten some funny errors from gcc when compiling a
C++ program. 

the command line to invoke the compiler looks like this:

source code file name:   hello.cc
binary name after compile:  hello

command line syntax:    g++ -g -Wall -ohello hello.cc   <ENTER>

if your program is coded correctly when you hit the enter key your machine
will whir for a second and then come back to the command prompt. a clean
compile is nothing but the command prompt. Then type the name of the
binary and watch your program run.

-- 
Mark
------------------------------------------------------------------------
**  =/\=  No Penguins were harmed       | ICQ#27816299
** <_||_> in the making of this         |
**  =\/=  message...                    | Registered Linux user #182496
------------------------------------------------------------------------

On Fri, 25 Aug 2000, Kathleen Dickason wrote:

> Does anyone here use Linux to program in C?  I am just learning.  Which compiler do
> you use?
> 
> Thanks,
> 
> Kathleen
> 
> 
> 


Reply via email to