[EMAIL PROTECTED] writes:
>My bet is that you are running your bits-of-ghc-plus-bits-of-your-own
>binary directly.  So it's not getting all the command-line flags it
>expects.
>(nor are they documented, because it's an internal interface).
>|      Main.hs:3:
>|              Bad interface file::  ./ParseAndRenameFile.hi
>|              ./ParseAndRenameFile.hi:1  Interface file 
>|      version error; Expected 0
>|      found version 408
>
>The version number it expects to find is again communicated by
>a command line flag.  For your purposes you may not care, so
>one option is to just remove the test.  Or ghc-4.08 -v will show
>you what the driver is saying to hsc.

Hi-
We have figured out how to fix the problem with the prelude, but we can't
seem to fix the version number problem.  What Simon says above makes
sense, except that we don't know how to set a command line option when we
don't have a command line.  That is, we are using the GHC parser and
renamer in a separate program (we are running
bits-of-ghc-plus-bits-of-our-own binary directly as Simon says above),
which compiles fine, but gives the above error when we run the generated
executable.  But when we run the executable there isn't a command line at
which to set options.  
We don't think that removing the test should cause any problems with our
program, except that again, we can't figure out where to tell the
executable to ignore that test.
Thanks in advance for any advice you may have,
kate


_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to