Mail Archives: djgpp/2000/03/07/18:37:17
On Mon, 6 Mar 2000, Rodeo Red wrote:
> This simple hello world program compiles fine but when I use -wall I get
> all the messages below.
BTW it isnt -wall (simple letter w) but -Wall (note capital letter W)
>
> If these aren't warning messaes what are they ?
Could you please post the command line you used to compile the program,
It might also be a botched installation but i might be wrong.
> Is there any other way to turn on warning messages besides "- wall" ?
Actually -Wall turns on _all_ the warnings. the libc refrence "info libc"
has a section dealing with the various warnings you can enable and disable
etc..
However -Wall is a very convenient way of enabling warnings, and AFAIK
some programmers refuse to accept code from a contributor if it fails to
compile without a single warning with the _Wall option turned on.
>
> Is djgpp the same compiler they mean when they say "gcc" ? Why does
> everyone else seem to use gcc as a command line but I have to use gpp ?
Well gcc and gpp are actualy front ends _not_ the compiler per se, they
invoke the appropriate compiler (the c++ compiler or the C compiler).
one difference is that when you compile c++ programs with the command gcc
you must specify the -lstdcx option asking the linker to link in the c++
libraries.
So a sample compile using gcc would go,
gcc foo.cpp -o foo.exe -lstdcx
On the otherhand gpp automatically adds the -lstdcx option so if you are
using gpp,
gpp foo.cpp -o foo.exe is enough.
Grendel
Hi, I'm a signature virus. plz set me as your signature and help me spread
:)
- Raw text -