M
mcarthum
I have a class declared in a header file as follows:
class Vector3{
public:
int x,y,z;
Vector3(int inx, int iny, int inz);
};
And I define the class in a source file:
class Vector3{
public:
int x,y,z;
Vector3(int inx, int iny, int inz){
x = inx;
y = iny;
z = inz;
}
};
When I #include the header in another file and try to construct a
Vector 3 object using "Vector3 vect(x,y,z);" I get an "unresolved
external symbol" linker error. What might be causing this?
class Vector3{
public:
int x,y,z;
Vector3(int inx, int iny, int inz);
};
And I define the class in a source file:
class Vector3{
public:
int x,y,z;
Vector3(int inx, int iny, int inz){
x = inx;
y = iny;
z = inz;
}
};
When I #include the header in another file and try to construct a
Vector 3 object using "Vector3 vect(x,y,z);" I get an "unresolved
external symbol" linker error. What might be causing this?