named-data / Consumer-Producer-API

GNU General Public License v3.0
8 stars 10 forks source link

Incompatible with ndn-cxx 0.7.1 #5

Open yoursunny opened 3 years ago

yoursunny commented 3 years ago

I have recent ndn-cxx version 0.7.1-11-g5dc7560d. The library does not compile with recent versions of ndn-cxx.

$ ./waf -j1
Waf: Entering directory `/vagrant/Consumer-Producer-API/build'
[ 1/18] Compiling src/simple-data-retrieval.cpp
In file included from /usr/local/include/ndn-cxx/encoding/tlv.hpp:25:0,
                 from ../src/context-default-values.hpp:25,
                 from ../src/simple-data-retrieval.hpp:25,
                 from ../src/simple-data-retrieval.cpp:22:
/usr/local/include/ndn-cxx/detail/common.hpp:35:2: error: #error "ndn-cxx applications must be compiled using the C++14 standard (-std=c++14)"
 #error "ndn-cxx applications must be compiled using the C++14 standard (-std=c++14)"
  ^~~~~
In file included from ../src/context.hpp:25:0,
                 from ../src/data-retrieval-protocol.hpp:25,
                 from ../src/simple-data-retrieval.hpp:27,
                 from ../src/simple-data-retrieval.cpp:22:
../src/common.hpp:48:10: fatal error: ndn-cxx/common.hpp: No such file or directory
 #include <ndn-cxx/common.hpp>
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.

Waf: Leaving directory `/vagrant/Consumer-Producer-API/build'
Build failed
 -> task in 'consumerproducer' failed with exit status 1 (run with -v to display more information)
ptrsp commented 2 years ago

Hi dude. have you solved this problem ? i'm facing the same error.