Re: [Haskell-cafe] Re: Compiling packages for GHCi

2007-06-06 Thread Udo Stenzel
Grzegorz wrote: > > mkdir libmaxent > > cd libmaxent > > ar x /usr/local/lib/libmaxent.a > > cd .. > > ghci (...) libmaxent/*.o > > This doesn't quite work: > ghc-6.6.1: libmaxent/trainer.o: unknown symbol `_ZNSt8ios_base4InitC1Ev' > final link ... ghc-6.6.1: linking extra libraries/objects fail

[Haskell-cafe] Re: Compiling packages for GHCi

2007-06-06 Thread Grzegorz
Brandon S. Allbery KF8NH ece.cmu.edu> writes: > Alternately, just extract the contents of the .a into a subdirectory > and explicitly load them: > > mkdir libmaxent > cd libmaxent > ar x /usr/local/lib/libmaxent.a > cd .. > ghci (...) libmaxent/*.o This doesn't quite work: ghc-6.6.1: libmax

Re: [Haskell-cafe] Re: Compiling packages for GHCi

2007-06-06 Thread Brandon S. Allbery KF8NH
On Jun 6, 2007, at 7:55 , Simon Marlow wrote: Grzegorz wrote: I don't have a libmaxent.so, the maxent library in at /usr/local/ lib/libmaxent.a Can I somhow use my package with GHCi? No, you need the .so. GHCi can't load static .a libraries. If you really have no way to get a .so, then

[Haskell-cafe] Re: Compiling packages for GHCi

2007-06-06 Thread Simon Marlow
Grzegorz wrote: Hi, I'm having problems using a package which links in foreign libraries from GHCi. I use a .cabal file to build the package and have the following option there: extra-libraries:stdc++ maxent z m gfortran m gcc_s After installation, it works fine when I compile code using