
8 Feb
2009
8 Feb
'09
11:49 a.m.
noteed:
Hi,
I'm writing bindings for the Tiny C Compiler. It seems that tcc provide a libtcc.a but no libtcc.so.
In my cabal file, I have
extra-libraries: dl, tcc
but when using the generated haskell module, I have the following message :
⟨thu@jones samples⟩ ghc -e "main" Test.hs <interactive>: <command line>: can't load .so/.DLL for: tcc (libtcc.so: cannot open shared object file: No such file or directory)
How can I generate a module linked statically against libtcc ?
Without a .so you can't load it in ghci, but you can compile it with ghc. ghc --make Test.hs -- Don