User forums > Using Code::Blocks
GCC compiler options
BotoxBoy:
Hey there,
so I'm trying to use code blocks to compile our gcc project, the only problem is that when I look at the gcc command line that it generates, it's added the option -I- to the command line, now this isn't an option we specify normally and it's causing issues. also our version of gcc says that it's depracated and to use -iquote instead.
Anyone know how to turn off these options in CB ??? I can't find it anywhere in the gcc build options.
-BotoxBoy!
MortenMacFly:
Allthough I'm not completely sure I believe that's part of the PCH strategy (precompiled headers) you are using. Play around with the settings in project -> properties on the "project" tab... ;-)
With regards, Morten.
TDragon:
--- Quote from: MortenMacFly on May 12, 2006, 07:15:33 am ---Allthough I'm not completely sure I believe that's part of the PCH strategy (precompiled headers) you are using.
--- End quote ---
True. The option to generate the PCH in the objects output dir creates the -I- command line; the other two don't. I've had best results using the option to create it in a subdirectory of the source directory.
Kreso:
I'm using PCH's and have the same warning, have you been able to resolve it then?
TDragon:
Didn't you read my post?
Only one of the PCH generation strategies uses the -I- parameter and causes the warning; the other two do not.
Navigation
[0] Message Index
[#] Next page
Go to full version