User forums > General (but related to Code::Blocks)
GCC compiler switchs
(1/1)
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.
--- End quote ---
Mk that is what I thought. :P
Navigation
[0] Message Index
Go to full version