iCAx开思网

标题: 【求助】CAA找不到头文件 [打印本页]

作者: DragonSeraph    时间: 2004-8-12 05:19
标题: 【求助】CAA找不到头文件
新建了一个CAA V5 WorkSpace, 指定了prerequisite workspaceswe为“C:\Program Files\Dassault Systemes\B13”,然后出现下面的消息:
作者: DragonSeraph    时间: 2004-8-12 05:28
mkmk后说找不到一些头文件,但这些头文件都在C:\Program Files\Dassault Systemes\B13\ObjectModelerBase\PublicInterfaces下,然后我在prerequisite workspace中添加了C:\Program Files\Dassault Systemes\B13\ObjectModelerBase依然说找不到,应该怎么指定呢?
作者: ferarriii    时间: 2004-8-12 08:43
顶一下,希望高手出手
作者: ggcua    时间: 2004-8-12 10:06
看原因就是prerequisite frameworks 没有正确得到,我的也是大致如此
  Error copying D:\Program Files\Dassault Systemes\B13\.\intel_a\code\bin\CATObjectSpecsModeler.pdb : No such file or directory  
# Error copying D:\Program Files\Dassault Systemes\B13\.\intel_a\code\bin\CATOsmAutoSave.pdb : No such file or directory  
# Error copying D:\Program Files\Dassault Systemes\B13\.\intel_a\code\bin\CATOsmAutomation.pdb : No such file or directory  
# Error copying D:\Program Files\Dassault Systemes\B13\.\intel_a\code\bin\CATOsmDumpTool.pdb : No such file or directory  
# Error copying D:\Program Files\Dassault Systemes\B13\.\intel_a\code\bin\CATOsmItf.pdb : No such file or directory  
  
acoka说自己工程的路径不要用中文,我试了一下就好了。
作者: DragonSeraph    时间: 2004-8-12 12:13
我的路径里没有中文,都是英文.
作者: DragonSeraph    时间: 2004-8-12 13:56
你的问题跟我的好像不一样
作者: ggcua    时间: 2004-8-12 17:23
我看就是prerequisite frameworks 没有设置好
一般直接添加catia的目录让它自己搜索好了,能不能找到它会给提示的
  
或者选择第二个,copy也是指定目录
  
或者你把那几个头文件拷贝到你的工程目录下,试试
作者: redwing    时间: 2004-8-12 22:30
When you created a new workspace, did you click menu
CAAV5 Workspace->Loate Prerequiste Workspaces...
then, added your B13 path?
  
Another possible reason is not setting your environment variables for CAA
i.e. on my mahine, Catai is installed at e:\ds\b13, CAA/Rade is installed at e:\ds\t13, so the path including:
e:\ds\B13\intel_a\code\bin;e:\ds\B13\intel_a\code\command;e:\ds\T13\intel_a\code\bin;e:\ds\T13\intel_a\code\command;
作者: redwing    时间: 2004-8-12 22:36
ggcua wrote:
看原因就是prerequisite frameworks 没有正确得到,我的也是大致如此  
  Error copying D:\Program Files\Dassault Systemes\B13\.\intel_a\code\bin\CATObjectSpecsModeler.pdb : No such file or directory   
  # Error copying D:\Program Files\Dassault Systemes\B13\.\intel_a\code\bin\CATOsmAutoSave.pdb : No such file or directory   
  # Error copying D:\Program Files\Dassault Systemes\B13\.\intel_a\code\bin\CATOsmAutomation.pdb : No such file or directory   
  # Error copying D:\Program Files\Dassault Systemes\B13\.\intel_a\code\bin\CATOsmDumpTool.pdb : No such file or directory   
  # Error copying D:\Program Files\Dassault Systemes\B13\.\intel_a\code\bin\CATOsmItf.pdb : No such file or directory   
  
  acoka说自己工程的路径不要用中文,我试了一下就好了。

  
When you installing the software, NEVER naming a folder with 中文, Never naming a folder with a space, such as "Dassault Systemes". That MAY cause your problem at any time.
作者: DragonSeraph    时间: 2004-8-13 01:39
我在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
作者: DragonSeraph    时间: 2004-8-13 04:11
当我CAAV5 Workspace->Loate Prerequiste Workspaces... 中指定了..\..\B13后,RADE是怎么知道我用到了哪些prerequisite framework呢?
如果是根据我C++文件中的include语句,那它应该能找到所有需要的头文件才对,好像也没有其他地方可以设置什么。
作者: redwing    时间: 2004-8-13 04:14
Missing the dll module in imakefile
You have added the prerequiste frameworks, you also need add the corresponding modules to imakefile
  
From the compiler compains, you need add
KnowledgeItf \
CATObjectModelerBase \
...
  
check the identitycard to find the frameworks be referenced, then figure out modules need to be added in the imakefile.  
  
use ctrl+F1 may find the variables and methods finded in what framework
作者: ferarriii    时间: 2004-8-13 09:02
DragonSeraph wrote:
当我CAAV5 Workspace->Loate Prerequiste Workspaces... 中指定了..\..\B13后,RADE是怎么知道我用到了哪些prerequisite framework呢?  
  如果是根据我C++文件中的include语句,那它应该能找到所有需要的头文件才对,好像也没有其他地方可以设置什么。

  
试试看,在CAAV5 Workspace->Loate Prerequiste Workspaces... 中,指定
..\..\B13
..\..\B13\CAADoc
两个目录,
就把Imakefile.mk需要的所有Frameworks都包含进去了
作者: ggcua    时间: 2004-8-13 09:13
DragonSeraph wrote:
当我CAAV5 Workspace->Loate Prerequiste Workspaces... 中指定了..\..\B13后,RADE是怎么知道我用到了哪些prerequisite framework呢?  
  如果是根据我C++文件中的include语句,那它应该能找到所有需要的头文件才对,好像也没有其他地方可以设置什么。

  
是根据你的工程中的文件夹IdentityCard来知道使用的prerequisite framework,你把这个文件夹中的IdentityCard.h打开看一下,一般都是add 某某AddPrereqComponent("System",Protected);
作者: DragonSeraph    时间: 2004-8-14 03:37
redwing wrote:
Missing the dll module in imakefile  
  You have added the prerequiste frameworks, you also need add the corresponding modules to imakefile  
  
  From the compiler compains, you need add  
  KnowledgeItf \  
  CATObjectModelerBase \  
  ...  
  
  check the identitycard to find the frameworks be referenced, then figure out modules need to be added in the imakefile.   
  
  use ctrl+F1 may find the variables and methods finded in what framework

  
多谢大家的回答,已经搞定这个问题了。除了告诉RADE你用到了哪些prerequisite framework外(可以用菜单CAAV5 WorkSpace\define prerequisite framework或者直接修改IdentityCard.h文件),另外还要告诉CAA在做Link时需要的库,这可以在imakefile中添加。我没找到怎么从菜单里添加?
作者: acoka    时间: 2004-8-14 22:29
DragonSeraph wrote:
   
  
  多谢大家的回答,已经搞定这个问题了。除了告诉RADE你用到了哪些prerequisite framework外(可以用菜单CAAV5 WorkSpace\define prerequisite framework或者直接修改IdentityCard.h文件),另外还要告诉CAA在做Link时需要的库,这可以在imakefile中添加。我没找到怎么从菜单里添加?

  
你也搞清imakefile和idntitycard的区别了?




欢迎光临 iCAx开思网 (https://www.icax.org/) Powered by Discuz! X3.3