[ns] how to include vector into ns

Daniel Dekst dolkoff at yahoo.com.cn
Tue Apr 15 18:13:02 PDT 2008


Hi,
   
  I'm trying to use 
  vector<string> stl
  in ns.
   
  I add
  #include <string>
  #include <vector>
  in the file.
   
  but it claims:
  Error: vector is undeclared
   
  However, if I use a single file to try the program.
  $g++  test.cpp -g -o test
  It works well.
   
  So why ns cannot recognize it?
   
  Best,
  Pei

 between 0000-00-00 and 9999-99-99       <hr size=1><a href="http://cn.mail.yahoo.com/"> ÑÅ»¢ÓÊÏ䣬ÄúµÄÖÕÉúÓÊÏ䣡</a>


More information about the Ns-users mailing list