News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

GCC compiler options

Started by BotoxBoy, May 12, 2006, 06:15:29 AM

Previous topic - Next topic

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

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.

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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Kreso

oh, sorry, missed it :)

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