[mercury-users] shared library

Marcus Vinicius Santos m3santos at scs.ryerson.ca
Sun Jan 11 09:41:54 AEDT 2004


Hi.

I am having problems to generate a shared library out of the
Mercury's hello.m sample program.

This is what I am doing:

1- mmc --pic-reg -c hello.m
2- ml --shared -o libhello.so hello.o

But I get the message:
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function
`_start':
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x18):
undefined re
ference to `main'
collect2: ld returned 1 exit status

Any help would be appreciated.

Marcus


--------------------------------------------------------------------------
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