Code::Blocks Forums

User forums => Help => Topic started by: philippe.quesnel on March 02, 2006, 04:35:24 am

Title: FLTK (2.0) vs precomp headers MinWG
Post by: philippe.quesnel on March 02, 2006, 04:35:24 am
Hi,
thought I'd share this bit of info, since it took me a while to find out what the prob was !  :?

WinXP SP2
C::B => CB_20060301_rev2102_win32
MinGW => gcc 3.4.5
fltk-2.0.x-r4803  (installed under MSys' local/include & local/lib)

... fails to compile simple FLTK app with problems finding include files
ie #include <fltk/Window.h>  ==> Window.h fails to find Group.h (which is in the same dir)

this happens when using the precompiled headers config =
  "Generate PCH in the object output dir (default)"

which adds a "-I-" switch for GCC.
this causes include files NOT to look up 'child' include files in the same directory,
like the <fltk/Window.h> example above.

hope this can save time for someone someday.
cheers
Philippe

Title: Re: FLTK (2.0) vs precomp headers MinWG
Post by: titan on April 14, 2006, 06:26:35 pm
To get rid of the -I- switch, I posted a woraround.  See topic "Bug Report: GCC -I- (Split include path) breaks some include chains"

http://forums.codeblocks.org/index.php?topic=2254.msg22759#msg22759 (http://forums.codeblocks.org/index.php?topic=2254.msg22759#msg22759)