[Haskell-cafe] Library Versioning

Luis Cabellos cabellos at ifca.unican.es
Tue Jun 7 18:28:10 CEST 2011


You can export things from one module that are defined in other modules.
>  For example:
>
> > module MyPackage ( version, ... )
>
> > import Paths_my_package( version )
> > ...
>
> Yes indeed, but I getting ugly errors (undefined references to version I
think) when use Paths_my_package from library, and i don't know a better
fix:
 /home/cabellos/.cabal/lib/skema-server-0.1.0/ghc-6.12.3/libHSskema-server-0.1.0.a(Main.o):
In function `r4HU_info':
(.text+0x3ef9): undefined reference to
`skemazmserverzm0zi1zi0_Pathszuskemazuserver_version1_closure'
/home/cabellos/.cabal/lib/skema-server-0.1.0/ghc-6.12.3/libHSskema-server-0.1.0.a(Main.o):
In function `s5TE_info':
(.text+0x8e03): undefined reference to
`__stginit_skemazmserverzm0zi1zi0_Pathszuskemazuserver_'

Also, I'm using Dyre, It's possible that recompile proccess of dyre cause
the error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110607/48ae25c1/attachment.htm>


More information about the Haskell-Cafe mailing list