[Haskell-cafe] more problems with c2hs
Duncan Coutts
duncan.coutts at worc.ox.ac.uk
Thu Apr 12 19:01:43 EDT 2007
On Fri, 2007-04-13 at 02:37 +1000, Ruben Zilibowitz wrote:
> Hi,
>
> I've built and installed c2hs on my Mac OS X system now. I read
> through the research paper on c2hs available on the website for c2hs
> and decided I would need to try it out to learn it. But it gives me
> errors which I am having trouble trying to understand. Here are the
> error messages:
>
> c2hs file.chs
>
> powerpc-apple-darwin8-gcc-4.0.1: c: No such file or directory
> powerpc-apple-darwin8-gcc-4.0.1: c: No such file or directory
> powerpc-apple-darwin8-gcc-4.0.1: warning: '-x -x' after last input
> file has no effect
> powerpc-apple-darwin8-gcc-4.0.1: no input files
> c2hs: Error during preprocessing custom header file
c2hs runs cpp -x c ${header}
for the header file you specify. You can either specify a header file on
the commend line or use #include's in the .chs file. c2hs should
generate a .h file itself in that case but it looks like it isn't for
some reason. You can find out what it is really doing by running:
c2hs --dump trace file.chs
btw, the better mailing list for this stuff is the c2hs mailing list:
c2hs at haskell.org
Duncan
More information about the Haskell-Cafe
mailing list