[Ndn-interest] Custom class error: No such file or directory

Adhy Satya adhysatya820 at gmail.com
Fri Jul 7 13:07:39 PDT 2017


Hi,

I guess a more general question is "where should I store custom libraries
and how should I declare them in my code?"

I hope someone can guide me with this issue.

Thanks


On Tue, Jun 27, 2017 at 3:58 PM, Adhy Satya <adhysatya820 at gmail.com> wrote:

> Hi,
>
> I wrote a class to read my nodes' location and put it in ~/ndn-cxx/src
> folder and compiled with ./waf successfully.
>
> Waf: Entering directory `/home/adhy/ndn-cxx/build'
> [104/177] Compiling src/Node.cpp
> [168/177] Linking build/libndn-cxx.so
> [170/177] Linking build/bin/ndnsec
> [171/177] Linking build/examples/client
> [172/177] Linking build/examples/consumer-with-timer
> [173/177] Linking build/examples/producer
> [174/177] Linking build/examples/server
> [175/177] Linking build/examples/consumer
> [176/177] Symlinking build/libndn-cxx.so
> Waf: Leaving directory `/home/adhy/ndn-cxx/build'
> 'build' finished successfully (16.091s)
>
> The problem is when I try to use the custom class in an example by
> declaring the library #include <ndn-cxx/Node.hpp> I get this error:
>
> Waf: Entering directory `/home/adhy/ndn-cxx/build'
> [ 34/179] Compiling examples/custom-producer/custom-producer.cpp
> ../examples/custom-producer/custom-producer.cpp:28:28: fatal error:
> ndn-cxx/Node.hpp: No such file or directory
> compilation terminated.
>
> Waf: Leaving directory `/home/adhy/ndn-cxx/build'
>
>
> How do I solve this issue?
>
> Thank you,
> Adhy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20170707/4574ae67/attachment.html>


More information about the Ndn-interest mailing list