Oh! I missed the crucial error message and got distracted by the secondary ones. Thanks, Ian.
When I use ghc, it's via cabal, which is then finding up the necessary include file (from applicative-numbers). I guess I have to somehow direct ghci to the include directory. Is that possible? - Conal On Tue, Mar 10, 2009 at 7:15 PM, Ian Lynagh <[email protected]> wrote: > > Hi Conal, > > On Tue, Mar 10, 2009 at 12:50:13PM -0700, Conal Elliott wrote: > > Do ghc and ghci handle CPP differently? In ghci, I'm getting "phase `C > > pre-processor' failed (exitcode = 1)" when I #include the same .h file > more > > than once in a module. I also get warnings about a symbol being > redefined, > > although I'm careful to #undef them it the end of the include file. All > > works fine with ghc. > > Your problem seems to be that cpp can't find ApplicativeNumeric-inc.hs > when run by ghci: > > > Graphics/Shady/Vec.hs:134:0: > > error: ApplicativeNumeric-inc.hs: No such file or directory > > It looks to me like ghc and ghci are calling cpp in the same way, so if > you can't see what the problem is then can you please let us know what > version of GHC you are using, exactly what commands you are running, and > give us a complete reproducible testcase? > > > Thanks > Ian > >
_______________________________________________ Glasgow-haskell-bugs mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
