[mercury-users] little problem

Pieter Laeremans pieter at kotnet.org
Thu Jul 3 07:28:27 AEST 2003


Hi,

I'm trying to write a module that makes it possible to store data in a
postgresql database.

I'm not using the odbc.m module.  But rather embedding some c code.

But linking the code gives the following output:

ml --grade asm_fast.gc     --make-shared-lib         --    -o psql psql_init.o \
	psql.o \
	   -lpq   
psql_init.o(.rodata+0x0): undefined reference to `MR_grade_v8_asm_fast_gc_tags2'
psql.o(.rodata+0x1a4): undefined reference to `MR_grade_v8_asm_fast_gc_tags2'
collect2: ld gaf exit-status 1 terug
Mercury Linker:
	Note: the symbol `MR_grade_v8_asm_fast_gc_tags2' was mentioned.
	Any link errors are most likely due to linking together object
	files compiled with different compilation model options.
	Try doing `mmake clean' and then rebuilding.


Now I don't get this problem when I'm using the hlc.gc grade.  But
just for curiuosity what might be the reason for this ?  The module
doesn't import any other module except the io module.

thanks in advance,

Pieter
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list