
14 Nov
2001
14 Nov
'01
10:45 a.m.
Thanks to ghc --make it is now common to compile files from a different directory. This creates a new problem, in that if a file starts with a {-# include
#-} directive, ghc will try to find c-header.h in the current directory, not in the directory containing the source file. So we need a way of changing the gcc include path during compilation of .hc files to include the directory containing the source file.
What's wrong with just saying -I<dir> whenever you say -i<dir>? Cheers, Simon