我在CAAV5 Workspace->Loate Prerequiste Workspaces... 中指定
了..\...\B13. 也加了相应的environment variables。 现在我是把那些
说找不到的头文件都拷到了..\demo\CatiaCAA\CATIAPlugin.m\LocalInterfaces下,(demo是我的workspace,CatiaCAA是我的framework,CATIAPlugin是我的module),编译能过了,但link的时候又不行了:
## start step: link1st at 08/12/2004-13:15:31
# make: CatiaCAA\CATIAPlugin.m intel_a\code\lib\CATIAPlugin.lib
Creating library D:\WorkSpace\CAA\Demo\.\intel_a\code\lib\CATIAPlugin.lib and object D:\WorkSpace\CAA\Demo\.\intel_a\code\lib\CATIAPlugin.exp
## end step: link1st at 08/12/2004-13:15:31
## start step: link2nd at 08/12/2004-13:15:31
# make: CatiaCAA\CATIAPlugin.m intel_a\code\bin\CATIAPlugin.dll
CatiaData.obj : error LNK2001: unresolved external symbol "private: void __stdcall CATICkeParm_var::__CastTo(struct IUnknown *)" (?__CastTo@CATICkeParm_var@@AAGXPAUIUnknown@@@Z)
CatiaData.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CATListValCATISpecObject_var::~CATListValCATISpecObject_var(void)" (__imp_??1CATListValCATISpecObject_var@@UAE@XZ)
CatiaData.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CATISpecObject_var & __thiscall CATListValCATISpecObject_var:perator[](int)" (__imp_??ACATListValCATISpecObject_var@@QAEAAVCATISpecObject_var@@H@Z)
CatiaData.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall CATListValCATISpecObject_var::Size(void)const " (__imp_?Size@CATListValCATISpecObject_var@@QBEHXZ)
CatiaData.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static char const * __stdcall CATICkeParm::ClassName(void)" (__imp_?ClassName@CATICkeParm@@SGPBDXZ)
CatiaData.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CATListValCATISpecObject_var::CATListValCATISpecObject_var(void)" (__imp_??0CATListValCATISpecObject_var@@QAE@XZ)
CatiaData.obj : error LNK2001: unresolved external symbol "private: void __stdcall CATIParmPublisher_var::__CastTo(struct IUnknown *)" (?__CastTo@CATIParmPublisher_var@@AAGXPAUIUnknown@@@Z)
CatiaData.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CATCke::Boolean::~Boolean(void)" (__imp_??1Boolean@CATCke@@QAE@XZ)
CatiaData.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CATCke::Boolean:perator int(void)const " (__imp_??BBoolean@CATCke@@QBEHXZ)
CatiaData.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static long __cdecl CATDocumentServices::SaveAs(class CATDocument &,class CATUnicodeString const &,class CATUnicodeString const &,unsigned char)" (__imp_?SaveAs@CATDocumentServices@@SAJAAVCATDocument@@ABVCATUnicodeString@@1E@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "private: void __stdcall CATISpecObject_var::__CastTo(struct IUnknown *)" (?__CastTo@CATISpecObject_var@@AAGXPAUIUnknown@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "private: void __stdcall CATIPrtPart_var::__CastTo(struct IUnknown *)" (?__CastTo@CATIPrtPart_var@@AAGXPAUIUnknown@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) struct _GUID IID_CATInit" (__imp_?IID_CATInit@@3U_GUID@@A)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) long __cdecl CATLockDocument(class CATDocument &)" (__imp_?CATLockDocument@@YAJAAVCATDocument@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static long __cdecl CATDocumentServices::Open(class CATUnicodeString const &,class CATDocument * &,unsigned char)" (__imp_?Open@CATDocumentServices@@SAJABVCATUnicodeString@@AAPAVCATDocument@@E@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) long __cdecl Create_Session(char *,class CATSession * &)" (__imp_?Create_Session@@YAJPADAAPAVCATSession@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) long __cdecl GetPtrSession(class CATSession * &)" (__imp_?GetPtrSession@@YAJAAPAVCATSession@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "private: virtual double __thiscall CAT3DViewpoint::GetTrim(class CATMathDirectionf const &)const " (?GetTrim@CAT3DViewpoint@@EBENABVCATMathDirectionf@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::Reframe(float,float,float,float,class CAT3DBoundingSphere const &)" (?Reframe@CAT3DViewpoint@@UAEXMMMMABVCAT3DBoundingSphere@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::ApplyGravity(void)" (?ApplyGravity@CAT3DViewpoint@@UAEXXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::Rotate(class CATMathVectorf const &,class CATMathPointf const &)" (?Rotate@CAT3DViewpoint@@UAEXABVCATMathVectorf@@ABVCATMathPointf@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::SetGravityDirection(class CATMathDirectionf const &)" (?SetGravityDirection@CAT3DViewpoint@@UAEXABVCATMathDirectionf@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATMathDirectionf const & __thiscall CAT3DViewpoint::GetGravityDirection(void)const " (?GetGravityDirection@CAT3DViewpoint@@UBEABVCATMathDirectionf@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::SetGravityMode(enum CATViewpointGravityMode)" (?SetGravityMode@CAT3DViewpoint@@UAEXW4CATViewpointGravityMode@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual enum CATViewpointGravityMode __thiscall CAT3DViewpoint::GetGravityMode(void)const " (?GetGravityMode@CAT3DViewpoint@@UBE?AW4CATViewpointGravityMode@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATMathDirectionf const & __thiscall CAT3DViewpoint::GetRightDirection(void)const " (?GetRightDirection@CAT3DViewpoint@@UBEABVCATMathDirectionf@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::SetVertical(class CATMathDirectionf const &)" (?SetVertical@CAT3DViewpoint@@UAEXABVCATMathDirectionf@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual double __thiscall CAT3DViewpoint::GetTwist(class CATMathDirectionf const &)const " (?GetTwist@CAT3DViewpoint@@UBENABVCATMathDirectionf@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual double __thiscall CAT3DViewpoint::GetCape(class CATMathDirectionf const &,class CATMathDirectionf const &)const " (?GetCape@CAT3DViewpoint@@UBENABVCATMathDirectionf@@0@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATMathDirectionf const & __thiscall CAT3DViewpoint::GetProjectionDirection(void)const " (?GetProjectionDirection@CAT3DViewpoint@@UBEABVCATMathDirectionf@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CAT3DBagRep const * __thiscall CAT3DViewpoint::GetBagFurtive(void)const " (?GetBagFurtive@CAT3DViewpoint@@UBEPBVCAT3DBagRep@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CAT3DBagRep const * __thiscall CAT3DViewpoint::GetBag(void)const " (?GetBag@CAT3DViewpoint@@UBEPBVCAT3DBagRep@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::SetTarget(class CATMathPointf const &)" (?SetTarget@CAT3DViewpoint@@UAEXABVCATMathPointf@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATMathPointf __thiscall CAT3DViewpoint::GetTarget(void)const " (?GetTarget@CAT3DViewpoint@@UBE?AVCATMathPointf@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::SetAngle(float const &)" (?SetAngle@CAT3DViewpoint@@UAEXABM@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual float __thiscall CAT3DViewpoint::GetAngle(void)const " (?GetAngle@CAT3DViewpoint@@UBEMXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::SetFocus(float const &)" (?SetFocus@CAT3DViewpoint@@UAEXABM@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual float __thiscall CAT3DViewpoint::GetFocusDistance(void)const " (?GetFocusDistance@CAT3DViewpoint@@UBEMXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::SetUpDirection(class CATMathDirectionf const &)" (?SetUpDirection@CAT3DViewpoint@@UAEXABVCATMathDirectionf@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATMathDirectionf const & __thiscall CAT3DViewpoint::GetUpDirection(void)const " (?GetUpDirection@CAT3DViewpoint@@UBEABVCATMathDirectionf@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::SetSightDirection(class CATMathDirectionf const &)" (?SetSightDirection@CAT3DViewpoint@@UAEXABVCATMathDirectionf@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATMathDirectionf const & __thiscall CAT3DViewpoint::GetSightDirection(void)const " (?GetSightDirection@CAT3DViewpoint@@UBEABVCATMathDirectionf@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::SetOrigin(class CATMathPointf const &)" (?SetOrigin@CAT3DViewpoint@@UAEXABVCATMathPointf@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATMathPointf const & __thiscall CAT3DViewpoint::GetOrigin(void)const " (?GetOrigin@CAT3DViewpoint@@UBEABVCATMathPointf@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::Set(class CATMathPointf const &,class CATMathDirectionf const &,class CATMathDirectionf const &)" (?Set@CAT3DViewpoint@@UAEXABVCATMathPointf@@ABVCATMathDirectionf@@1@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::AttachIndicator(class CATIndicator *)" (?AttachIndicator@CAT3DViewpoint@@UAEXPAVCATIndicator@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::Modify(void)" (?Modify@CAT3DViewpoint@@UAEXXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CAT3DViewpoint::SizeOf(void)" (?SizeOf@CAT3DViewpoint@@UAEHXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual float __thiscall CAT3DViewpoint::GetScaleFactor(float,float,float,float)" (?GetScaleFactor@CAT3DViewpoint@@UAEMMMMM@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::ComputePixelFromModel(class CATMathPointf const &,class CATMathPoint2Df &,float,float,float,float)" (?ComputePixelFromModel@CAT3DViewpoint@@UAEXABVCATMathPointf@@AAVCATMathPoint2Df@@MMMM@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::ComputeModelFromPixel(float,float,class CATMathPointf &,class CATMathPointf &,float,float,float,float)" (?ComputeModelFromPixel@CAT3DViewpoint@@UAEXMMAAVCATMathPointf@@0MMMM@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATDLPool * __thiscall CATViewpoint::GetDisplayListPool(void)" (?GetDisplayListPool@CATViewpoint@@UAEPAVCATDLPool@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATPooledDisplayList * __thiscall CATViewpoint::GetPooledDisplayList(void)" (?GetPooledDisplayList@CATViewpoint@@UAEPAVCATPooledDisplayList@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::Stretch(int,int,int,int)" (?Stretch@CAT3DViewpoint@@UAEXHHHH@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATViewpoint * __thiscall CAT3DViewpoint::Clone(void)const " (?Clone@CAT3DViewpoint@@UBEPAVCATViewpoint@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATViewpoint * __thiscall CAT3DViewpoint::Clone(class CATViewpoint * *)const " (?Clone@CAT3DViewpoint@@UBEPAVCATViewpoint@@PAPAV2@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::CreateViewportFrom(float,float,float,float,float,float,float,float)" (?CreateViewportFrom@CAT3DViewpoint@@UAEXMMMMMMMM@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::Reframe(float,float,float,float)" (?Reframe@CAT3DViewpoint@@UAEXMMMM@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CATViewpoint::StopAnimation(void *)" (?StopAnimation@CATViewpoint@@UAEXPAX@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CATViewpoint::StartAnimation(void *)" (?StartAnimation@CATViewpoint@@UAEXPAX@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CATViewpoint::EndModification(int)" (?EndModification@CATViewpoint@@UAEXH@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CATViewpoint::BeginModification(void)" (?BeginModification@CATViewpoint@@UAEXXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CATViewpoint::SetZoomBounds(float,float)" (?SetZoomBounds@CATViewpoint@@UAEXMM@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual float __thiscall CATViewpoint::GetMaximumZoomBound(void)const " (?GetMaximumZoomBound@CATViewpoint@@UBEMXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual float __thiscall CATViewpoint::GetMinimumZoomBound(void)const " (?GetMinimumZoomBound@CATViewpoint@@UBEMXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CAT3DViewpoint::SetZoom(float const &)" (?SetZoom@CAT3DViewpoint@@UAEXABM@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual float __thiscall CAT3DViewpoint::GetZoom(void)const " (?GetZoom@CAT3DViewpoint@@UBEMXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual unsigned char __thiscall CAT3DViewpoint::Is3D(void)" (?Is3D@CAT3DViewpoint@@UAEEXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATCallbackManager * __thiscall CATViewpoint::GetCallbackManager(void)" (?GetCallbackManager@CATViewpoint@@UAEPAVCATCallbackManager@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CAT3DViewpoint::IsAKindOf(char const *)const " (?IsAKindOf@CAT3DViewpoint@@UBEHPBD@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual char const * __thiscall CAT3DViewpoint::IsA(void)const " (?IsA@CAT3DViewpoint@@UBEPBDXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "public: virtual class CATMetaClass * __stdcall CAT3DViewpoint::GetMetaObject(void)const " (?GetMetaObject@CAT3DViewpoint@@UBGPAVCATMetaClass@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CAT3DBoundingSphere::~CAT3DBoundingSphere(void)" (__imp_??1CAT3DBoundingSphere@@UAE@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: float __thiscall CAT3DBoundingSphere::GetRadius(void)const " (__imp_?GetRadius@CAT3DBoundingSphere@@QBEMXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CAT3DBoundingSphere::CAT3DBoundingSphere(class CAT3DBoundingSphere const &)" (__imp_??0CAT3DBoundingSphere@@QAE@ABV0@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CAT3DBoundingSphere const & __thiscall CAT3DRep::GetBoundingElement(void)" (__imp_?GetBoundingElement@CAT3DRep@@QAEABVCAT3DBoundingSphere@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: long __thiscall CATVisManager::AttachTo(class CATPathElement *,class CATViewpoint *,class list<struct _GUID> &,class CATCommand *,int,int,int)" (__imp_?AttachTo@CATVisManager@@QAEJPAVCATPathElement@@PAVCATViewpoint@@AAV?$list@U_GUID@@@@PAVCATCommand@@HHH@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CAT3DViewpoint::CAT3DViewpoint(void)" (__imp_??0CAT3DViewpoint@@QAE@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) struct _GUID IID_CATI3DGeoVisu" (__imp_?IID_CATI3DGeoVisu@@3U_GUID@@A)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CATPathElement::~CATPathElement(void)" (__imp_??1CATPathElement@@UAE@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class CATVisManager * __cdecl CATVisManager::GetVisManager(void)" (__imp_?GetVisManager@CATVisManager@@SAPAV1@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CATPathElement::CATPathElement(class CATBaseUnknown const *)" (__imp_??0CATPathElement@@QAE@PBVCATBaseUnknown@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CAT3DViewpoint::~CAT3DViewpoint(void)" (__imp_??1CAT3DViewpoint@@UAE@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) long __cdecl Delete_Session(char *,int,int)" (__imp_?Delete_Session@@YAJPADHH@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) long __cdecl CATUnLockDocument(class CATDocument &)" (__imp_?CATUnLockDocument@@YAJAAVCATDocument@@@Z)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CATMfError * __thiscall CATMfError::Self(void)" (__imp_?Self@CATMfError@@QAEPAV1@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static char const * __stdcall CATMfError::ClassName(void)" (__imp_?ClassName@CATMfError@@SGPBDXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CATUnicodeString __thiscall CATMfErrUpdate::GetDiagnostic(void)" (__imp_?GetDiagnostic@CATMfErrUpdate@@QAE?AVCATUnicodeString@@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CATMfErrUpdate * __thiscall CATMfErrUpdate::Self(void)" (__imp_?Self@CATMfErrUpdate@@QAEPAV1@XZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static char const * __stdcall CATMfErrUpdate::ClassName(void)" (__imp_?ClassName@CATMfErrUpdate@@SGPBDXZ)
CatiaModel.obj : error LNK2001: unresolved external symbol "private: void __stdcall CATIDomain_var::__CastTo(struct IUnknown *)" (?__CastTo@CATIDomain_var@@AAGXPAUIUnknown@@@Z)
D:\WorkSpace\CAA\Demo\.\intel_a\code\bin\CATIAPlugin.dll : fatal error LNK1120: 91 unresolved externals
# make-ERROR: intel_a\code\bin\CATIAPlugin.dll
## end step: link2nd at 08/12/2004-13:15:31
== Command done, return code = 0
Tool returned code: 0 |