[Nice] undefined reference to `nice_agent_set_port_range'

Youness Alaoui youness.alaoui at collabora.co.uk
Tue Oct 18 12:48:47 PDT 2011


Hi,

It's probably because you have an older version of libnice installed on your
system and when you compile it like that, it will link to the wrong one.
If you installed libnice in /usr/local then maybe try with -L/usr/local/lib for
example. But what you should really do to compile it is just to type :
'make check'

I hope that helps.
Youness.

On 10/18/2011 09:52 AM, Riccardo Colamatteo wrote:
> Hi to all members,
> 
> I'm having troubble with the compilation process of test-fullmode.c,
> infact after doing the command
> 
> gcc -lnice `pkg-config --cflags --libs gtk+-2.0` test-fullmode.c,
> 
> the compiler output is
> 
> /tmp/cceeL4Qj.o: In function `run_full_test':
> test-fullmode.c:(.text+0x8bd): undefined reference to
> `nice_agent_set_port_range'
> test-fullmode.c:(.text+0x8e7): undefined reference to
> `nice_agent_set_port_range'
> test-fullmode.c:(.text+0x911): undefined reference to
> `nice_agent_set_port_range'
> test-fullmode.c:(.text+0x93b): undefined reference to
> `nice_agent_set_port_range'
> test-fullmode.c:(.text+0xa7e): undefined reference to
> `nice_agent_set_port_range'
> collect2: ld returned 1 exit status
> 
> Thanks to all
> Best regards
> Riccardo
> _______________________________________________
> 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/20111018/dee1b557/attachment.pgp>


More information about the Nice mailing list