[mercury-users] using sockets, echoserv.m

Peter Wang novalazy at gmail.com
Tue Dec 16 16:50:24 AEDT 2008


On 2008-12-16, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
> On Mon, 15 Dec 2008, Jörg Schuster wrote:
>
>> =================================================================================
>>
>> Making echoserv
>> ** Error making `echoserv'.
>> Mercury/os/posix.select.o: In function `<predicate
>> 'posix:select.new_fdset_ptr'/3 mode 0>':
>> posix.select.c:(.text+0xf6): undefined reference to `ME_fd_zero'
>> Mercury/os/posix.select.o: In function `<predicate
>> 'posix:select.fd_isset'/5 mode 0>':
>> posix.select.c:(.text+0x143): undefined reference to `ME_fd_isset'
>> Mercury/os/posix.select.o: In function `<predicate
>> 'posix:select.fd_zero'/3 mode 0>':
>> posix.select.c:(.text+0x111): undefined reference to `ME_fd_zero'
>> Mercury/os/posix.select.o: In function `<predicate
>> 'posix:select.fd_clr'/4 mode 0>':
>> posix.select.c:(.text+0x121): undefined reference to `ME_fd_clr'
>> Mercury/os/posix.select.o: In function `<predicate
>> 'posix:select.fd_set'/4 mode 0>':
>> posix.select.c:(.text+0x161): undefined reference to `ME_fd_set'
>> collect2: ld returned 1 exit status

Those functions are defined in posix_workarounds.c.
You need to link with posix_workarounds.o, e.g. using mmc --link-object.

Peter

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