[[project @ 2004-05-05 10:46:52 by simonmar] simonmar**20040505104652 Document use of -I flag for finding FFI header files ] { hunk ./ghc/docs/users_guide/ffi-chap.sgml 292 + + + Finding Header files + + Header files named by the + option or in a foreign import declaration + are searched for using the C compiler's usual search path. + You can add directories to this search path using the + option (see ). + + Note: header files are ignored unless compiling via C. + If you had been compiling your code using the native code + generator (the default) and suddenly switch to compiling via + C, then you can get unexpected errors about missing include + files. Compiling via C is enabled automatically when certain + options are given (eg. and + both enable + ). + }