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

Matteo Bertolino Matteo.Bertolino at eurecom.fr
Fri Oct 28 05:56:06 PDT 2016


Dear Junxiao, thank you very much, again :)
Can I kindly ask you how to integrate the compilation string in an  
external Makefile?
Bests,
Matteo

Quoting Junxiao Shi <shijunxiao at email.arizona.edu>:

> 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>
> wrote:
>
>> 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
>>
>



-------------------------------------------------------------------------------
This message was sent using EURECOM Webmail: http://webmail.eurecom.fr





More information about the Ndn-interest mailing list