linking error

Hi,

i get the following errors when i try to build a particular occ program!
can anyone please suggest recommended changes in linking!!

1>ImportExportApp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static struct CRuntimeClass * __stdcall OCC_3dChildFrame::GetThisClass(void)" (__imp_?GetThisClass@OCC_3dChildFrame@@SGPAUCRuntimeClass@@XZ) referenced in function "public: virtual int __thiscall CImportExportApp::InitInstance(void)" (?InitInstance@CImportExportApp@@UAEHXZ)

1>ImportExportApp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static struct CRuntimeClass * __stdcall OCC_3dView::GetThisClass(void)" (__imp_?GetThisClass@OCC_3dView@@SGPAUCRuntimeClass@@XZ) referenced in function "public: virtual int __thiscall CImportExportApp::InitInstance(void)" (?InitInstance@CImportExportApp@@UAEHXZ)

1>ImportExportDoc.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: static struct AFX_MSGMAP const * __stdcall OCC_3dBaseDoc::GetThisMessageMap(void)" (__imp_?GetThisMessageMap@OCC_3dBaseDoc@@KGPBUAFX_MSGMAP@@XZ) referenced in function "protected: static struct AFX_MSGMAP const * __stdcall CImportExportDoc::GetThisMessageMap(void)" (?GetThisMessageMap@CImportExportDoc@@KGPBUAFX_MSGMAP@@XZ)

1>../Debug/ImportExport.exe : fatal error LNK1120: 3 unresolved externals
1>Build log was saved at "file://c:\OpenCASCADE6.3.0\samples\standard\mfc\08_ImportExport\Debug\BuildLog.htm"
1>ImportExport - 4 error(s), 5 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Paul Jimenez's picture

Those linking errors seem to be related to your own code. OCC_3dChildFrame::GetThisClass and OCC_3dBaseDoc::GetThisMessageMap do not sound like OpenCASCADE to me.