On Sun, 2006-07-23 at 18:09 +0200, Volker Wysk wrote:
> Hello
> 
> When compiling a module, which contains "foreign import" directives, via C, 
> the C compiler needs to be passed a "-I." argument, otherwise the include 
> file mentioned there won't be found.
> 
> You can do this manually with an "-I." argument to ghc (after you figure it 
> out), but since this is always necessary, I consider it a bug.

I believe this behaviour was changed in GHC 6.4 or perhaps it was 6.2. I
forget. Anyway, it was deliberate (I think!). Remember that you can
include things from the system's standard include search path without
specifying -I, so you don't always have to use -I. You only need it if
you are using local .h files, in which case, the argument goes, why not
be explicit about that fact? That's one rationale for the change.

Duncan

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to