Author Topic: GCC compiler options  (Read 3565 times)

BotoxBoy

  • Guest
GCC compiler options
« 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!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9524
Re: GCC compiler options
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline TDragon

  • Lives here!
  • ****
  • Posts: 936
    • Twilight Dragon Media
Re: GCC compiler options
« Reply #2 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.
http://tdm-gcc.tdragon.net/ - TDM-GCC compiler suite for Windows (GCC 5.1.0 2015-06-28, 32/64-bit, no extra DLLs)

Offline Kreso

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: GCC compiler options
« Reply #3 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?

Offline TDragon

  • Lives here!
  • ****
  • Posts: 936
    • Twilight Dragon Media
Re: GCC compiler options
« Reply #4 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.
http://tdm-gcc.tdragon.net/ - TDM-GCC compiler suite for Windows (GCC 5.1.0 2015-06-28, 32/64-bit, no extra DLLs)

Offline Kreso

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: GCC compiler options
« Reply #5 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