VS2008 C2061 error

Hello everyone!

I'm quite new to c/c++ prgramming, especially using VS2008, and therefor am in some need for a little help :o)

I tried to implement a class with a function passing a parameter "vector<vector<double>>", and now am getting the error message "error C2061: syntax error : identifier 'vector'" ...

in the stdafx.h file I already included the <vector> and using namespace std; etc. - the strange thing for me is the fact that in devc++ the whole thing worked ... my class looks like this:
1
2
3
4
5
6
7
class cba
{
    private:
        [...]
    public:
	void abc(vector<vector<double> > &);
};

I searched the net the whole morning, but nowhere found someone with a similar problem - is this just a stupid beginner mistake I don't see?

thanks in advance!
Last edited on
I think is better if you #include <vector> and say that you are using namespace std on the file containing the class
Oh. My. God.

yeah, that helped, thank you ... I thought that when including the header files in the stdafx.h, they should be present in all the other *.cpp files in the project that inluded the stdafx ...

Topic archived. No new replies allowed.