Hi,

I'm still fiddling around with ghc-2.10 on Solaris and Linux.

I have introduced there new primitve operation that generate closures:
just normal tuples and another algebraic datatype.
For my convenience I wrote C-functions to generate them.

When I try to link programs that use these primitives I get the following 
linking error:

Undefined                       first referenced
 symbol                             in file
PrelTup_Z40Z44Z44Z44Z44Z41_con_info 
/app/tmp3/klusik/EdenCompi/compilation/ghc/driver/../runtime/libHSrts_me.a(MacroHelpers.me_o)
EdenBase_Chan_con_info              
/app/tmp3/klusik/EdenCompi/compilation/ghc/driver/../runtime/libHSrts_me.a(MacroHelpers.me_o)
PrelTup_Z40Z44Z44Z44Z44Z44Z44Z41_con_info 
/app/tmp3/klusik/EdenCompi/compilation/ghc/driver/../runtime/libHSrts_me.a(MacroHelpers.me_o)
ld: fatal: Symbol referencing errors. No output written to a.out

although the symbols are in the library.

When I include the object files of these modules which have been used to construct the 
library, the symbols are found, and the programs behaves well.

N.B.: the symbols the linker complains about are not really used in these 
      haskell programs. They are there to have generic implementations of my 
      primitives. 

Does there exist a magic linking option I don't know about?

Thanks in advance,

Ulrike

Reply via email to