[Nice] How to compile test-bsd.c

Riccardo Colamatteo riccardo.colamatteo at gmail.com
Fri Oct 21 06:54:58 PDT 2011


Hi all nicelist members,
in libnice every .c test program are compilable in simple way, e.g.
with command-line
gcc -lnice `pkg-config --cflags --libs gtk+-2.0` test.c.

But in this simple way I can't compile test-bsd.c or test-dribble and
I obtain the errors:
test-bsd.c:(.text+0x1e): undefined reference to `nice_udp_bsd_socket_new'
test-bsd.c:(.text+0xd4): undefined reference to `nice_udp_bsd_socket_new'
test-bsd.c:(.text+0x27a): undefined reference to `nice_socket_send'
test-bsd.c:(.text+0x29e): undefined reference to `nice_socket_recv'
test-bsd.c:(.text+0x389): undefined reference to `nice_socket_send'
test-bsd.c:(.text+0x3ad): undefined reference to `nice_socket_recv'
test-bsd.c:(.text+0x480): undefined reference to `nice_socket_free'
test-bsd.c:(.text+0x48c): undefined reference to `nice_socket_free'
collect2: ld returned 1 exit status

Why??? Thanks to all. Regards


More information about the Nice mailing list