User forums > Using Code::Blocks
mixed C and C++ : GNU gcc / g++ options
(1/1)
earlgrey:
Say you have one C::B project with mixed C and C++ files.
Is there a way to differentiate g++ from gcc options in the C::B GUI, because I would like to get rid
of this warning :
========================================================================
cc1: warning: command line option ‘-fno-rtti’ is valid for C++/ObjC++ but not for C [enabled by default]
========================================================================
Seems like C::B invoke gcc with g++ options.
Regards to C::B Team.
stahta01:
Did you try right clicking on the "Compiler Flags" and adding it as a C++ only flag?
Tim S.
earlgrey:
My option is not in the list
-fno-rtti
I wrote it manually in the "other options" tab
oBFusCATed:
Then did try this:
--- Quote from: stahta01 on May 24, 2014, 09:10:37 am ---Did you try right clicking on the "Compiler Flags" and adding it as a C++ only flag?
--- End quote ---
earlgrey:
OK, add "new flag"
I need to go to an eye-specialist.
Sorry for the forum noise.
Navigation
[0] Message Index
Go to full version