[Nice] How to compile test-bsd.c

Youness Alaoui youness.alaoui at collabora.co.uk
Fri Oct 21 11:31:05 PDT 2011


I just explained to you why, read my previous email to you, there's nothing more
to add either for the explanation on why it happens or on how to compile it.

On 10/21/2011 09:54 AM, Riccardo Colamatteo wrote:
> 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
> _______________________________________________
> Nice mailing list
> Nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/nice/attachments/20111021/c02ef059/attachment.pgp>


More information about the nice mailing list