[Ndn-interest] How to compile using both ndn-cxx and another library

Junxiao Shi shijunxiao at email.arizona.edu
Fri Oct 28 04:55:42 PDT 2016

Hi Matteo

1. Move your programs out of ndn-cxx repository.
2. Install ndn-cxx normally.
3. g++ -o myapp myapp.cpp -std=c++11 $(pkg-config --cflags --libs
libndn-cxx) -lother-library

Yours, Junxiao

On Oct 28, 2016 00:41, "Matteo Bertolino" <Matteo.Bertolino at eurecom.fr>

> Good morning to all,
> I need to compile a program that uses ndn-cxx and a couple of function of
> another cpp (static) library that is cpp-netlib (no really matter which
> library, it is a general question actually).
> Then, I have no idea how to do it. I am used to compile all the programs
> in ndn-cxx/example folder using sudo ndn-cxx/waf command. Absolutely no
> idea how to modify the script, or other alternatives.
> Any suggestions? Thanks,
> Matteo
> ------------------------------------------------------------
> -------------------
> This message was sent using EURECOM Webmail: http://webmail.eurecom.fr
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20161028/868cb7c0/attachment.html>

More information about the Ndn-interest mailing list