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 _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
