[Haskell-cafe] -fvia-C error
Duncan Coutts
duncan.coutts at worc.ox.ac.uk
Thu Jun 12 03:52:49 EDT 2008
On Thu, 2008-06-12 at 00:07 -0700, Don Stewart wrote:
> aeyakovenko:
> > any idea what could be causing this error when i add the -fvia-C option
> >
> > /tmp/ghc32300_0/ghc32300_0.hc:6:23:
> > error: SFMT_wrap.h: No such file or directory
> > make: *** [release] Error 1
> >
> > I am also passing these options:
> >
> > -O2 -fexcess-precision -funbox-strict-fields -fglasgow-exts
> > -fbang-patterns -lcblas
>
> When compiling something linked against the mersenne random package?
Don, this does not work:
includes: SFMT.h SFMT_wrap.h
install-includes: SFMT.h
You cannot limit the scope of the SFMT_wrap.h to be just this package.
You can limit .h scope to one file or global -- nothing in between.
You can limit it to just that file by specifying the .h file in the
foreign import declaration:
> foreign import ccall "private.h foo" foo :: IO ()
Alternatively you can also install SFMT_wrap.h.
Duncan
More information about the Haskell-Cafe
mailing list