D
DouglasUrbano
Hi all,
I have a class named CVector:
class CVector {
public:
float fx;
float fy;
};
and i also have a class named CImage:
#include "CVector.h"
#include <vector>
class CImage {
public:
CVector Size;
std::vector < CFrame* > Frames;
};
but when i try to compile it, i got some errors
\include\c++\3.4.2\bits\stl_bvector.h `vector' is not a template
and if i change the include orders, to:
#include <vector>
#include "CVector.h"
i got these error:
CImage.h ISO C++ forbids declaration of `CMyVector' with no type
and these code works perfectly on linux!
Anyone knows why, or how to fix it?
I have a class named CVector:
class CVector {
public:
float fx;
float fy;
};
and i also have a class named CImage:
#include "CVector.h"
#include <vector>
class CImage {
public:
CVector Size;
std::vector < CFrame* > Frames;
};
but when i try to compile it, i got some errors
\include\c++\3.4.2\bits\stl_bvector.h `vector' is not a template
and if i change the include orders, to:
#include <vector>
#include "CVector.h"
i got these error:
CImage.h ISO C++ forbids declaration of `CMyVector' with no type
and these code works perfectly on linux!
Anyone knows why, or how to fix it?