News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

GCC compiler switchs

Started by sethjackson, July 31, 2006, 03:26:44 AM

Previous topic - Next topic

sethjackson

I think I may have found a bug.

I turned the -Wmain switch on (for a C++ program).

GCC (or Code::Blocks or...) balked at me saying that switch was only for Obj-C/C.
So I think it is a bug? I have looked on the GCC website, and it seems to me that it is for Obj-C/C/C++  :?

http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

killerbot

checking the docs, it's a vlid c++ switch. So if CB complains about it, it's because GCC did.
I can confirm (GCC 3.4.5), I think you should file this to the GCC guys.

Or their code is wrong or their docs.

sethjackson

Quote from: killerbot on July 31, 2006, 10:08:28 AM
checking the docs, it's a vlid c++ switch. So if CB complains about it, it's because GCC did.
I can confirm (GCC 3.4.5), I think you should file this to the GCC guys.

Or their code is wrong or their docs.

Mk that is what I thought. :P