Mail Archives: djgpp/2000/03/08/07:51:34
On Tue, 7 Mar 2000, Kalum Somaratna aka Grendel wrote:
> Actually -Wall turns on _all_ the warnings.
No, it doesn't. It turns on many warnings, but not all of them. -W
turns on several more, and then there are -Wfoo options which are not
part of either one of these two.
> the libc refrence "info libc"
> has a section dealing with the various warnings you can enable and disable
> etc..
You meant "info gcc", of course. Compiler warnings have nothing to do
with the library.
> 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
You meant -lstdcxx, of course.
- Raw text -