<div dir="ltr"><br><div>Hi,</div><div><br></div><div><br></div><div>Recently I'd like to modify the source code of libnice to new a function,</div><div>however, I found something strange like the followings:</div><div><br></div><div>I wrote a new function (called "myfunc" here), </div><div>Then when I used the libnice library (.so) in another.c file (called "test.c" herer)  and calld myfunc() ,</div><div>compiling on test.c failed and showed that </div><div><br></div><div>undefined reference to `myfunc'<br></div><div><br></div><div>but I'm pretty sure the .so file is put on the proper path and the related header is included.</div><div>If I remove the change I did, the compiling works.</div><div>If I just add some additional printf() in libnice, it does apply the modified part without compiling error.</div><div><br></div><div><br></div><div>Actually,</div><div><br></div><div>I fixed it. But I don't know why :/</div><div><br></div><div>The solution is I configured libnice with --enable-static and it generated the static library (.a),</div><div>I linked the .a file instead of .so file to test.c, the compiling works if I called the myfunc().</div><div><br></div><div><br></div><div>Anyone find the point??</div><div>If I don't say clearly , please let me know.</div><div><br></div><div><br></div><div>Thanks in advance. :)</div><div><br></div></div>