[Ndn-interest] Error using NDNx C functions

Nitinder Mohan nitinder1369 at iiitd.ac.in
Mon Nov 17 06:24:05 PST 2014


Hello All,

Greetings. I am trying to port an application to NDNx platform. Till now I
have only injected code to check whether ndnd is running or not. However, I
am greeted with the following error:

application.o: In function `main':
/home/iiitd/master/src/application.cpp:1788: undefined reference to
`ndn_create()'
/home/iiitd/master/src/coordinator.cpp:1796: undefined reference to
`ndn_connect(ndn*, char const*)'

To give a background reference, I am including ndn header files using
#include<ndn/___>. The problem is that the application only works with
shared dynamic libraries (.so) files whereas NDN has only generated
libndn.a (static library). However, I have compiled the shared library for
NDN in following manner:

ar -x libndn.a
gcc -shared *.o -o libndn.so

This has generated a .so file which I have placed in usr/local/lib. Running
the program again, I am getting the same error.

Is there any other way I can have the shared library for NDNx?

Thanks and Regards

Nitinder Mohan
MTech (CE) IIIT Delhi
http://home.iiitd.edu.in/~nitinder1369/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20141117/12fb7aca/attachment.html>


More information about the Ndn-interest mailing list