<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="gmail_extra"><br><div class="gmail_quote">On Jul 23, 2016 23:34, "Xuxiang Tian" <<a href="mailto:xuxiangtian@ucla.edu">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>