[mercury-users] Build error on MacOS X in hlc.gc

Michael Day mikeday at yeslogic.com
Tue Oct 31 15:30:37 AEDT 2006


> ld: Undefined symbols:
> <predicate 'exception.wrap_success_or_failure'/2 mode 0>

The actual link command for ld includes a reference to:

     .../mercury/lib/hlc.gc/libmer_std.a

running nm on this library shows these symbols:

00001484 t _mercury__exception__wrap_success_or_failure_2_p_0
00001420 t _mercury__exception__wrap_success_or_failure_2_p_1
000013cc t _mercury__exception__wrap_success_or_failure_2_p_2
00001368 t _mercury__exception__wrap_success_or_failure_2_p_3

and yet ld is still failing with this error message:

ld: Undefined symbols:
_mercury__exception__wrap_success_or_failure_2_p_0

Clearly that symbol is in the library, and the library is being passed 
to the linker on the command line, so what can be the problem? Is it 
possible that the library was not built properly, or the command line 
arguments are in the wrong order?

Best regards,

Michael

-- 
Print XML with Prince!
http://www.princexml.com
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list