[ndnSIM] Error message : No such file or directory

Russo Peter russope0625 at gmail.com
Sat Jul 24 09:22:00 PDT 2021


Dear Alex,

Thanks for your reply.

It still shows the error message:
try2.cc:4:10 fatal error: ns3/key-chain.hpp: No such file or directory

I have tried to put my program into a different folder and set the
corresponding path of #include, but it still showed the same error message,
maybe it's not the problem of the path and position?

My best regards.
Peter

Alex Afanasyev <aa at cs.fiu.edu> 於 2021年7月23日 週五 上午12:19寫道:

> You cannot have "build" in the include. Just
>
> #include "ns3/ndnSIM/ndn-cxx/security/v2/key-chain.hpp"
>
> should work
>
> On Jul 22, 2021, at 12:14 PM, sangita...... via ndnSIM <
> ndnsim at lists.cs.ucla.edu> wrote:
>
>
> Hi Peter,
> #include "ns3/key-chain.hpp"
> Does it work ?
>
> Actually you need to give the path of header file considering the
> directories heirarchi and their relation of include the other .h files.
>
> On Wed, Jul 21, 2021, 16:28 Russo Peter via ndnSIM <
> ndnsim at lists.cs.ucla.edu> wrote:
>
>> Dear members,
>>
>> I'm conducting a program using ndn-cxx's function to understand how it
>> works.
>>
>> These are the beginning of my program named try2.cc:
>> #include <iostream>
>> #include "build/ns3/ndnSIM/ndn-cxx/security/v2/key-chain.hpp"
>>
>> When I compiled it, I received an error message:
>> g++ -o try2 try2.cc
>> try2.cc:4:10 fatal error:
>> build/ns3/ndnSIM/ndn-cxx/security/v2/key-chain.hpp: No such file or
>> directory
>>
>> I put this file in the ns-3 folder.The ndn-simple could normally run.
>> I've noticed that key-chain.hpp was a read-only file, does that matter?
>> Could anyone help me with this? Any help will be appreciated.
>>
>> My best regards.
>> Peter
>> _______________________________________________
>> ndnSIM mailing list
>> ndnSIM at lists.cs.ucla.edu
>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
> ______________
> Alex Afanasyev
> Assistant Professor, SCIS, Florida International University
> 11200 SW 8th Street, PG6 Room 140D, Miami, FL 33199
> phone: +1.305.348.4960 (office); email: aa at cs.fiu.edu <aa at cs.fiu.edu>
> web: https://users.cs.fiu.edu/~afanasyev/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210725/0bcbbf1b/attachment.html>


More information about the ndnSIM mailing list