Bug #2060
Updated by Junxiao Shi about 10 years ago
Recently, we have added the following statement into ndn-cxx's `common.hpp`
#ifdef NDN_CXX_HAVE_TESTS
#define VIRTUAL_WITH_TESTS virtual
#define PUBLIC_WITH_TESTS_ELSE_PROTECTED public
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE public
#define PROTECTED_WITH_TESTS_ELSE_PRIVATE protected
#else
#define VIRTUAL_WITH_TESTS
#define PUBLIC_WITH_TESTS_ELSE_PROTECTED protected
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE private
#define PROTECTED_WITH_TESTS_ELSE_PRIVATE private
#endif
As a result, when ndn-cxx is compiled without tests, it prevents NFD from compiling with tests enabled.
This issue must be resolved asap.
Easiest, is to add `NDN_CXX_` prefix to the library's version of macros.