Hello,
I have tried to include a library with a Plane class. The plane class has three constructors. The following is copied from the header file...
ManipExport Plane(Point3& normal, Point3& point);
ManipExport Plane(Point3& p1, Point3& p2, Point3& p3);
ManipExport Plane(): mNormal(0,0,1), mPoint(0,0,0), mD(0.0f) {}
In my code, I can compile the following...
Point3 p0, p1, p2;
p0 = mn.v[mn.f[this_face].vtx[0]].p;
p1 = mn.v[mn.f[this_face].vtx[1]].p;
p2 = mn.v[mn.f[this_face].vtx[2]].p;
Plane pln(p0, p1);
but when I try to use the the second constructor as follows I get an error
Plane pln(p0, p1, p2);
I don't understand why I can compile with one constructor but not the other. I'm not even sure what I should be looking out for with this error so some hints as to what to research would be welcome...
The error is as follows.....
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Plane::Plane(class Point3 &,class Point3 &,class Point3 &)" (__imp_??0Plane@@QEAA@AEAVPoint3@@00@Z) referenced in function "public: void __cdecl P2PModData::Update(int)" (?Update_Q@P2PModData@@QEAAXH@Z)
1>c:\plugins\P2P.dlm : fatal error LNK1120: 1 unresolved externals
Many thanks....