X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2Fffi-chap.sgml;fp=ghc%2Fdocs%2Fusers_guide%2Fffi-chap.sgml;h=d622179dc7dfcc3641e806151254bdb7341a736f;hb=10d840ae72e71eadadc400881632168fdce514e2;hp=99d21a3cc19b23274074faa323bc9920a83d19f7;hpb=2c556fae8314b3b36f031529d018f4f722c2caf2;p=ghc-hetmet.git diff --git a/ghc/docs/users_guide/ffi-chap.sgml b/ghc/docs/users_guide/ffi-chap.sgml index 99d21a3..d622179 100644 --- a/ghc/docs/users_guide/ffi-chap.sgml +++ b/ghc/docs/users_guide/ffi-chap.sgml @@ -290,6 +290,26 @@ to be inlined across modules, use the command-line and package-configuration mechanism. + + 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 + ). + +