I have got the following in a header file for a class:

#include <vector>
#include <math.h>

In the class description, I have the following protected member:

vector<Point2D> samples;

Point2D is defined as a class

during compile time I get lots of errors (C2143, C4430 and C2238)

Any ideas?

According to google¹ those error codes mean "missing token", "missing type specifier" and "unexpected token" respectively. So it sounds like you have some sort of syntax error somewhere in your code.

¹ Next time please post the error message, not the error code, so I don't have to google it. Thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.