News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

FLTK (2.0) vs precomp headers MinWG

Started by philippe.quesnel, March 02, 2006, 04:35:24 AM

Previous topic - Next topic

philippe.quesnel

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


titan

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.next.codeblocks.org/index.php?topic=2254.msg22759#msg22759