User forums > Help
FLTK (2.0) vs precomp headers MinWG
(1/1)
			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.codeblocks.org/index.php?topic=2254.msg22759#msg22759
		
Navigation
[0] Message Index
Go to full version