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 it is possible to create a .o from the .a that GHCi can load using 'ld --whole-archive', but you're into hacker territory there.

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

--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university    KF8NH


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to