CATSolidSphere * CATCreateSolidSphere( CATGeoFactory* iFactory,
CATTopData* iData,
const CATMathPoint& iCenter,
double iRadius)
里面的CATTopData如何定义和设置呢?
参考帮助我是这么写的
CATGeoFactory* piGeomFactory = ::CATCreateCGMContainer() ;
CATMathPoint p1(0,0,0); // the sphere center
CATSoftwareConfiguration * pConfig = new CATSoftwareConfiguration();
CATTopData topdata(pConfig,NULL);
CATSolidSphere * pSphereOpe = ::CATCreateSolidSphere(piGeomFactory,
topdata,
p1,
100.0);
pSphereOpe -> Run();
CATBody * pBodySphere = pSphereOpe -> GetResult();
不过编译出现了以下的LINK错误
TorusCmd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CATTopData::~CATTopData(void)" (__imp_??1CATTopData@@UAE@XZ)
TorusCmd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class CATSolidSphere * __cdecl CATCreateSolidSphere(class CATGeoFactory *,class CATTopData *,class CATMathPoint const &,double)" (__imp_?CATCreateSolidSphere@@YAPAVCATSolidSphere@@PAVCATGeoFactory@@PAVCATTopData@@ABVCATMathPoint@@N@Z)
TorusCmd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CATTopData::CATTopData(class CATSoftwareConfiguration *,class CATCGMJournalList *)" (__imp_??0CATTopData@@QAE@PAVCATSoftwareConfiguration@@PAVCATCGMJournalList@@@Z)
TorusCmd.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class CATGeoFactory * __cdecl CATCreateCGMContainer(double)" (__imp_?CATCreateCGMContainer@@YAPAVCATGeoFactory@@N@Z)
E:\UsercaseWorkspace\hcl\WBK\.\intel_a\code\bin\WorkBench.dll : fatal error LNK1120: 4 unresolved externals |