Symbol 'vector' could not be resolved

759 views
Skip to first unread message

batgun

unread,
Feb 19, 2013, 2:47:30 AM2/19/13
to ns-3-...@googlegroups.com
Hi;

I am trying to simulate one of the scenario where vector data structure is used.However, when I write the vector,
eclipse(configured with ns3) does not recognize and generates the error "Symbol 'vector' could not be resolved".
I search on Google and come up with some solutions. They did not work. Is there any body that meet the problem before?
Any help is appreciated.

Kind regards,

batgun

unread,
Feb 19, 2013, 3:10:48 AM2/19/13
to ns-3-...@googlegroups.com
Hi;

Let me clear myself. I have a header where I include the vector class(stl_vector).
However when I write vector, it does not recognized and error message "Symbol 'vector' 
could not be resolved" is generated. As far as I know this is library problem but all solution
in net does not solve the problem.

Kind regards,

Konstantinos

unread,
Feb 19, 2013, 4:29:47 AM2/19/13
to ns-3-...@googlegroups.com
Try using it as std::vector not just vector.

batgun

unread,
Feb 19, 2013, 4:58:40 AM2/19/13
to ns-3-...@googlegroups.com
Hi  Konstantinos;

I have already tried this option but it does not work as well. Thanks for your reply.
I solve the problem by deleting the libraries and adding them back. Following that 
I clear the project and build again. Next step is indexing again. All errors are gone.

Thanks for your reply.

Kind regards,
Reply all
Reply to author
Forward
0 new messages