<div dir="ltr">You are missing a reference to the boost library.<div><br></div><div>If my memory is not wrong, it should be -lboost_system -lboost</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-02 14:38 GMT+01:00 Matteo Bertolino <span dir="ltr"><<a href="mailto:Matteo.Bertolino@eurecom.fr" target="_blank">Matteo.Bertolino@eurecom.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sure:<br>
~/Desktop/mini3/due/ndn-cxx/ex<wbr>amples$ g++ -o out matproducer.cpp -std=c++11 -lndn-cxx -lpthread -I/usr/local/include/ndn-cxx/ -I/home/bertolino/Desktop/mini<wbr>3/due/ndn-cxx/src/<br>
/usr/bin/ld: /tmp/ccdg7qOe.o: undefined reference to symbol '_ZN5boost6system15system_cate<wbr>goryEv'<br>
//usr/lib/x86_64-linux-gnu/lib<wbr>boost_system.so.1.54.0: error adding symbols: DSO missing from command line<br>
collect2: error: ld returned 1 exit status<br>
Any ideas?<br>
<br>
Thanks, Matteo<div class="HOEnZb"><div class="h5"><br>
<br>
Quoting "César A. Bernardini" <<a href="mailto:mesarpe@gmail.com" target="_blank">mesarpe@gmail.com</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Mateo, could you share the compilation error or the G++ output.<br>
<br>
2016-11-02 11:41 GMT+01:00 Matteo Bertolino <<a href="mailto:Matteo.Bertolino@eurecom.fr" target="_blank">Matteo.Bertolino@eurecom.fr</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I followed your suggestion including all path until the end of compilation<br>
error. Unfortunately, , when I try to execute the file, I obtain "<br>
executable format error".<br>
<br>
I absolutely need a way to compile ndn-cxx file without waf. Does nobody<br>
already tried to do it?<br>
<br>
Matteo<br>
<br>
<br>
Quoting "César A. Bernardini" <<a href="mailto:mesarpe@gmail.com" target="_blank">mesarpe@gmail.com</a>>:<br>
<br>
You have to include the path towards the library in the gcc command.<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The error is highlighting that it can not find the face.hpp file. I am not<br>
sure, but I think is -I (capital i) and the path towards the file.<br>
<br>
2016-11-02 10:31 GMT+01:00 Matteo Bertolino <<a href="mailto:Matteo.Bertolino@eurecom.fr" target="_blank">Matteo.Bertolino@eurecom.fr</a><br>
>:<br>
<br>
Good morning,<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I would like to compile an ndn-cxx program without use the waf command.<br>
<br>
I tried:  g++ -o out matproducer.cpp -std=c++11 $(pkg-config --cflags<br>
--libs<br>
libndn-cxx)<br>
<br>
and<br>
<br>
g++ matproducer.cpp `pkg-config --cflags --libs libndn.cxx`<br>
<br>
But I obtain this error:<br>
<br>
matproducer.cpp:5:20: fatal error: face.hpp: No such file or directory<br>
 #include "face.hpp"<br>
                    ^<br>
compilation terminated.<br>
<br>
Any suggestions?<br>
Thank you very much,<br>
Matteo<br>
<br>
------------------------------<wbr>------------------------------<br>
-------------------<br>
This message was sent using EURECOM Webmail: <a href="http://webmail.eurecom.fr" rel="noreferrer" target="_blank">http://webmail.eurecom.fr</a><br>
<br>
______________________________<wbr>_________________<br>
Ndn-interest mailing list<br>
<a href="mailto:Ndn-interest@lists.cs.ucla.edu" target="_blank">Ndn-interest@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/m<wbr>ailman/listinfo/ndn-interest</a><br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
------------------------------<wbr>------------------------------<br>
-------------------<br>
This message was sent using EURECOM Webmail: <a href="http://webmail.eurecom.fr" rel="noreferrer" target="_blank">http://webmail.eurecom.fr</a><br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>-------------------<br>
This message was sent using EURECOM Webmail: <a href="http://webmail.eurecom.fr" rel="noreferrer" target="_blank">http://webmail.eurecom.fr</a><br>
<br>
</div></div></blockquote></div><br></div>