[mercury-users] Order of --link-object args

Ondrej Bojar bojar at ufal.mff.cuni.cz
Fri Aug 20 10:07:54 AEST 2010


Hi,

I'm linking against a library originally implemented in C and against a 
Mercury wrapper library (not "installed"). If I run:

mmc --make \
   ...
   --link-object lib-the-c-one.a \
   --link-object lib-the-wrapper.a \
   target

I get lot of undefined references to symbols actually present in 
lib-the-c-one.a (I double checked with nm).

If I reorder the two --link-object arguments, it links correctly:

mmc --make \
   ...
   --link-object lib-the-wrapper.a \
   --link-object lib-the-c-one.a \
   target

Is that a feature or a bug?

Thanks, Ondrej.

P.S.: I'm using rotd-2010-07-19.

-- 
Ondrej Bojar (mailto:obo at cuni.cz / bojar at ufal.mff.cuni.cz)
http://www.cuni.cz/~obo
--------------------------------------------------------------------------
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