<div dir="ltr">The problem may not be the include path because when I move the folder ndnSIM/ns-3/src/ndnSIM/ndn-cxx out of the folder /ndnSIM (the first ndnSIM), ndn-cxx can compile successfully, but when the folder ndnSIM/ns-3/src/ndnSIM/ndn-cxx stay inside, after I run ./waf configure, the message showed:<div><br></div><div><div>Setting top to                           : /Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx</div><div>Setting out to                           : /Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx/build</div><div>Building static library                  : no</div><div>Building shared library                  : yes</div><div>Checking for 'clang++' (C++ compiler)    : /usr/bin/clang++</div><div>Checking supported CXXFLAGS              : -std=c++11 -Wno-error=unneeded-internal-declaration -Wno-error=deprecated-register -Wno-error=unused-local-typedef -stdlib=libc++</div><div>Checking supported LINKFLAGS             : -stdlib=libc++</div><div>Checking supported CXXFLAGS              : -pedantic -Wall -O2 -g</div><div>Checking for std::is_default_constructible : yes</div><div>Checking for std::is_nothrow_move_constructible : yes</div><div>Checking for std::is_nothrow_move_assignable    : yes</div><div>Checking for friend typename-specifier          : yes</div><div>Checking for override and final specifiers      : yes</div><div>Checking for std::vector::insert with const_iterators : yes</div><div>Checking for program 'doxygen'                        : not found</div><div>Checking for program 'tar'                            : /usr/bin/tar</div><div>Checking for program 'sphinx-build'                   : not found</div><div>Checking for program 'sh'                             : /bin/sh</div><div>Checking for library pthread                          : yes</div><div>Checking for library rt                               : not found</div><div>Checking for function getpass                         : yes</div><div>Checking for rtnetlink                                : not found</div><div>Checking for framework CoreFoundation                 : yes</div><div>Checking for framework CoreServices                   : yes</div><div>Checking for framework Security                       : yes</div><div>Checking for program 'pkg-config'                     : /opt/local/bin/pkg-config</div><div>Checking for 'sqlite3'                                : yes</div><div> hecking Crypto++ lib                                 : 563</div><div>Checking if CryptoPP library works                    : no</div><div>Checking if CryptoPP library works                    : no</div><div>CryptoPP is present, but is not usable</div><div>(complete log in /Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx/build/config.log)</div></div><div><br></div><div><br></div><div>Then I read config.log, it seemed everything was fine except only one error:</div><div><br></div><div><br></div><div><div>[1/2] Compiling  [32mbuild/.conf_check_3a45ee5323740188e645eab38d82218a/test.cpp [0m</div><div><br></div><div>['/usr/bin/clang++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11', '-Wno-error=unneeded-internal-declaration', '-Wno-error=deprecated-register', '-Wno-error=unused-local-typedef', '-stdlib=libc++', '-I/opt/local/include', '-DNDEBUG', '-DHAVE_IS_DEFAULT_CONSTRUCTIBLE=1', '-DHAVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE=1', '-DHAVE_IS_NOTHROW_MOVE_ASSIGNABLE=1', '-DHAVE_CXX_FRIEND_TYPENAME=1', '-DHAVE_CXX_OVERRIDE_FINAL=1', '-DNDN_CXX_HAVE_VECTOR_INSERT_ERASE_CONST_ITERATOR=1', '-DHAVE_PTHREAD=1', '-DHAVE_GETPASS=1', '-DHAVE_COREFOUNDATION_COREFOUNDATION_H=1', '-DHAVE_CORESERVICES_CORESERVICES_H=1', '-DHAVE_SECURITY=1', '-DHAVE_OSX_SECURITY=1', '-DHAVE_SQLITE3=1', '-DCRYPTOPP_DISABLE_ASM', '../test.cpp', '-c', '-o', '/Users/apple/ndnSIM-test/ns-3/src/ndnSIM/ndn-cxx/build/.conf_check_3a45ee5323740188e645eab38d82218a/testbuild/test.cpp.1.o']</div><div>err: ../test.cpp:2:10: fatal error: '../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp' file not found</div><div>#include "../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp"</div><div>         ^</div><div>1 error generated.</div></div><div><br></div><div>What confused me is that it showed fatal error: '../../src/ndnSIM/ndn-cxx/src/security/cryptopp.hpp' file not found, however, this file did exist. </div><div>Could you please let me know if I am supposed to modify some configure to make this file found</div><div><br></div><div>Yours, Xuxiang</div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-24 5:54 GMT-07:00 Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi Xuxiang</p>
<p dir="ltr">SimpleTag is declared in ndn-cxx/tag.hpp which is included into ndn-cxx/lp/tags.hpp via ndn-cxx/tag-host.hpp</p>
<p dir="ltr">Find out the complete gcc command line (thru waf verbose logging), make gcc write preprocessed source into a file, and you should be able to find what's going on from that file.</p>
<p dir="ltr">Common suspects are wrong include path causing wrong file to be included, and duplicate #ifndef token.</p>
<p dir="ltr">Yours, Junxiao</p><div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><div class="gmail_quote">On Jul 23, 2016 23:34, "Xuxiang Tian" <<a href="mailto:xuxiangtian@ucla.edu" target="_blank">xuxiangtian@ucla.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Junxiao,<div><br></div><div>I start writing code to update the submodule, ndn-cxx from 0.3.4 to 0.4.1 for ndnSIM right now.</div><div>Compared to ndn 0.3.4, 0.4.1 created some files, which contains ./src/ndnSIM/ndn-cxx/src/lp/tags.hpp. When I was trying to compile by waf, there was a message shown as below:</div><div><br></div><div><div>[1518/2760] Compiling src/ndnSIM/ndn-cxx/src/lp/tags.cpp</div><div>In file included from ../src/ndnSIM/ndn-cxx/src/lp/tags.cpp:22:</div><div>../src/ndnSIM/ndn-cxx/src/lp/tags.hpp:36:9: error: unknown type name 'SimpleTag'</div><div>typedef SimpleTag<uint64_t, 10> IncomingFaceIdTag;</div><div>        ^</div><div>../src/ndnSIM/ndn-cxx/src/lp/tags.hpp:36:18: error: expected unqualified-id</div><div>typedef SimpleTag<uint64_t, 10> IncomingFaceIdTag;</div><div>                 ^</div></div><div><br></div><div>I think the problem is wscript of waf. Then I read the code of ndnSIM/wscript and ndnSIM/ndn-cxx/wscript, and compare changes of ndnSIM/ndn-cxx/wscript 0.3.4 with 0.4.1, I think there is something wrong in ndnSIM/wscript that should be modified, but I have not pinpointed the place. Kindly, can you give me some advice</div><div><br></div><div>Yours,</div><div>Xuxiang</div></div>
</blockquote></div></div>
</div></div></blockquote></div><br></div></div>