build: add -std=c++03 (in non C++11 mode) and -pedantic to the default CXXFLAGS

And fix the resulting warnings. The long-long-int warning is explicitly
suppressed because it's not trivial to workaround in a platform-independent
and ISO-conformant way without using C++11.

This commit also includes fix for the advisory check for C++11-enabled
compiler in common.hpp (gcc < 4.7 does not correctly define __cpluplus
macro).

Finally, when custom CXXFLAGS are specified, --with-c++11 does not force
-std=c++11 or -std=c++0x flags, but just performs mandatory checks for
std::shared_ptr and std::function.

Change-Id: Icf44627edfddd34301bd27a05882b62fcbf54329
15 files changed
tree: 7b8b539f0d3eded0dc767c6263190e24f106ba59
  1. .waf-tools/
  2. docs/
  3. examples/
  4. src/
  5. tests/
  6. tests-integrated/
  7. tools/
  8. .gitignore
  9. .travis.yml
  10. AUTHORS.md
  11. CHANGELOG
  12. client.conf.sample
  13. COPYING
  14. INSTALL.md
  15. libndn-cpp-dev.pc.in
  16. README.md
  17. waf
  18. wscript
README.md

ndn-cpp-dev: A dev version of Named Data Networking client library for C++

ndn-cpp-dev is a new implementation of a Named Data Networking client library written in C++.

ndn-cpp-dev is open source under a license described in the file COPYING. While the license does not require it, we really would appreciate it if others would share their contributions to the library if they are willing to do so under the same license.

See the file INSTALL for build and install instructions.

Please submit any bugs or issues to the ndn-cpp-dev issue tracker: http://redmine.named-data.net/projects/ndn-cpp-dev/issues