On Wed, 2009-04-01 at 00:32 +0200, Peter Verswyvelen wrote: > I'm busy writing my first library for Hackage - a wrapper for > QuesoGLC, yet another OpenGL font renderer using Freetype2. So if > someone else is already doing this, stop doing so :-) > > > I've succesfully build the libquesoglc.a library from C source, and > can build my Haskell tutorial file using > > > ghc --make -lquesoglc Tutorial1.hs > > > > But I can't drop the -lquesoglc, then I get linker errors. > > > However I did specify extra-libraries: quesoglc in the cabal file, and > the package file got configured, build and installed > > > So I must be doing something wrong, but can't figure out what.
You're not doing something like building the Tutorial1.hs from the top of the build tree of your package? If so it'll be picking up the local .hs files and ignoring the built and registered version of the package. You can check, use something like: ghc --make Tutorial1.hs -i \ -hide-all-packages -package base -package QuesoGLC So that you know it must only be looking at the installed QuesoGLC package. Duncan _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
