Mac C++ vector question

Started by
1 comment, last by stonemetal 16 years, 10 months ago
This is my first time using the stl on a mac. I have used it on other platforms so I am not sure what I am doing wrong here maybe there is a framework or something not getting set up correctly. Anyway the line vector<int> v; gives me the message error: expected constructor,destructor, or type conversion before '<' token
Advertisement
The OS shouldn't matter. Have you #include <vector> and are you using std::vector?
Thanks, I had forgotten the std::. sad part is there was a std::string on the line above it.

This topic is closed to new replies.

Advertisement