[Mono-devel-list] embedded mono: undefined reference to _wapi_FD_SET and _wapi_select
Mohammad DAMT
md at mt.web.id
Wed Aug 20 11:43:42 EDT 2003
Hi,
I have an embedded mono which uses UNIX sockets.
...
1 FD_ZERO (&z);
2 FD_SET (socket, &z);
3 tv.tv_sec = 10;
4 tv.tv_usec = 0;
5 if (select (socket + 1, &z, NULL, NULL, &tv)) {
...
compilation went through but when linking with this:
gcc `PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig pkg-config mono --libs` -o
prog thread.o file.o
it failed with message:
thread.o(.text+0x588): In function `main_thread':
: undefined reference to `_wapi_FD_SET'
thread.o(.text+0x5e0): In function `main_thread':
: undefined reference to `_wapi_select'
collect2: ld returned 1 exit status
when I link with
gcc `PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig pkg-config mono --libs` -o
prog thread.o file.o /opt/mono/lib/libmono.a
it succeed but when I run prog, it segfaulted on line 2.
I use mono 0.26, fyi, it worked fine with 0.25 (compile, link, and
run).
what did I miss?
Mohammad DAMT <mdamt at bisnisweb.com>
More information about the Mono-devel-list
mailing list