[Haskell-cafe] how to link statically with a c lib ?

2009-02-08 Thread minh thu
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 : ⟨...@jones samples⟩ ghc -e main Test.hs interactive:

Re: [Haskell-cafe] how to link statically with a c lib ?

2009-02-08 Thread Don Stewart
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 : ⟨...@jones samples⟩ ghc -e main

Re: [Haskell-cafe] how to link statically with a c lib ?

2009-02-08 Thread minh thu
2009/2/8 Don Stewart d...@galois.com: 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 :

Re: [Haskell-cafe] how to link statically with a c lib ?

2009-02-08 Thread Don Stewart
noteed: 2009/2/8 Don Stewart d...@galois.com: 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

Re: [Haskell-cafe] how to link statically with a c lib ?

2009-02-08 Thread minh thu
2009/2/8 Don Stewart d...@galois.com: noteed: 2009/2/8 Don Stewart d...@galois.com: 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