Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: BotoxBoy on May 12, 2006, 06:15:29 am

Title: GCC compiler options
Post by: BotoxBoy on May 12, 2006, 06:15:29 am
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!
Title: Re: GCC compiler options
Post by: 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. Play around with the settings in project -> properties on the "project" tab... ;-)
With regards, Morten.
Title: Re: GCC compiler options
Post by: TDragon on May 13, 2006, 05:07:40 pm
Allthough I'm not completely sure I believe that's part of the PCH strategy (precompiled headers) you are using.

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.
Title: Re: GCC compiler options
Post by: Kreso on July 23, 2006, 10:23:42 pm
I'm using PCH's and have the same warning, have you been able to resolve it then?
Title: Re: GCC compiler options
Post by: TDragon on July 23, 2006, 11:53:03 pm
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.
Title: Re: GCC compiler options
Post by: Kreso on July 25, 2006, 11:37:21 pm
oh, sorry, missed it :)

putting a gch in obj folder causes this problem, but I do prefer putting everything in ./obj