[Haskell-cafe] Re: Compiling packages for GHCi

Udo Stenzel u.stenzel at web.de
Wed Jun 6 20:03:31 EDT 2007


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 failed

Looks like something from the C++ standard library is missing.  You
could try adding -lstdc++.  (You would have stumbled into that anyway,
even if GHC did read static libraries.)


-Udo
-- 
This is your brain. This is Perl. This is your brain on Perl. Any questions?
	-- Erik Naggum
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20070607/2395ec53/attachment.bin


More information about the Haskell-Cafe mailing list