Repeated #include in ghci broken?
Conal Elliott
conal at conal.net
Tue Mar 10 23:11:28 EDT 2009
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 <igloo at earth.li> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20090310/536cab28/attachment.htm
More information about the Glasgow-haskell-bugs
mailing list