Link error....

hi everyone,

when i tried to integrate the open cascade libraries with my own specific application, link errors are being raised...i dont know wats the problem...can anybody help me out in wat needs to be done in order to over come all the errors...

I have mentioned all the link errors over here...kindly help me out....waiting for reply...

Linking...
Creating library Debug/clear.lib and object Debug/clear.exp
StdAfx.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) unsigned int MMgt_Opt" (__imp_?MMgt_Opt@@3IA)
StdAfx.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl Standard::MAllocate(int)" (?MAllocate@Standard@@SAPAXH@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void * * theFreeList" (__imp_?theFreeList@@3PAPAXA)
StdAfx.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int theFreeListSize" (__imp_?theFreeListSize@@3HA)
StdAfx.obj : error LNK2001: unresolved external symbol "public: static void __cdecl Standard::MFree(void * &)" (?MFree@Standard@@SAXAAPAX@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl Standard::MReallocate(void * &,int)" (?MReallocate@Standard@@SAPAXAAPAXH@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl Standard::RReallocate(void * &,int,int)" (?RReallocate@Standard@@SAPAXAAPAXHH@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Standard_Storable::ShallowDump(class std::basic_ostream > &)const " (?ShallowDump@Standard_Storable@@UBEXAAV?$basic_ostream@DU
?$char_traits@D@std@@@std@@@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Standard_Storable::HashCode(int)const " (?HashCode@Standard_Storable@@UBEHH@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Standard_Storable::Delete(void)" (?Delete@Standard_Storable@@UAEXXZ)
StdAfx.obj : error LNK2001: unresolved external symbol "public: __thiscall AIS_DataMapOfIOStatus::AIS_DataMapOfIOStatus(int)" (??0AIS_DataMapOfIOStatus@@QAE@H@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "public: void __thiscall Standard_Type::Print(class std::basic_ostream > &)const " (?Print@Standard_Type@@QBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@
Z)
StdAfx.obj : error LNK2001: unresolved external symbol "public: __thiscall AIS_DataMapOfILC::AIS_DataMapOfILC(int)" (??0AIS_DataMapOfILC@@QAE@H@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "protected: __thiscall PrsMgr_PresentableObject::PrsMgr_PresentableObject(enum PrsMgr_TypeOfPresentation3d)" (??0PrsMgr_PresentableObject@@IAE@W4PrsMgr_TypeOfPresentation3d@@@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "protected: __thiscall SelectMgr_SelectableObject::SelectMgr_SelectableObject(enum PrsMgr_TypeOfPresentation3d)" (??0SelectMgr_SelectableObject@@IAE@W4PrsMgr_TypeOfPresentation3d@@@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "protected: __thiscall AIS_InteractiveObject::AIS_InteractiveObject(enum PrsMgr_TypeOfPresentation3d)" (??0AIS_InteractiveObject@@IAE@W4PrsMgr_TypeOfPresentation3d@@@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "public: __thiscall WNT_GraphicDevice::WNT_GraphicDevice(unsigned int,void * const &)" (??0WNT_GraphicDevice@@QAE@IABQAX@Z)
StdAfx.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall XSControl_Reader::NbRootsForTransfer(void)" (?NbRootsForTransfer@XSControl_Reader@@UAEHXZ)
StdAfx.obj : error LNK2001: unresolved external symbol "public: __thiscall Handle_XSControl_WorkSession::~Handle_XSControl_WorkSession(void)" (??1Handle_XSControl_WorkSession@@QAE@XZ)
StdAfx.obj : error LNK2001: unresolved external symbol "public: void __thiscall TopTools_SequenceOfShape::Clear(void)" (?Clear@TopTools_SequenceOfShape@@QAEXXZ)
StdAfx.obj : error LNK2001: unresolved external symbol "public: void __thiscall TColStd_SequenceOfTransient::Clear(void)" (?Clear@TColStd_SequenceOfTransient@@QAEXXZ)
Debug/clear.exe : fatal error LNK1120: 21 unresolved externals
Error executing link.exe.

Regards,
E.G.Arun Prasath

Patrik Mueller's picture

Hi,

have you linked the OCC libs to your project?

Greets,

Patrik

prasath's picture

hi patrick,

Thanks for your kind reply....ya i have cleared all the errors....

Regards,
E.G.Arun Prasath

prasath's picture

hi patrick,

Thanks for your kind reply....ya i have cleared all the errors....

Regards,
E.G.Arun Prasath

Dheevatsa's picture

Hi Arun, Patrick

I have the same error(s)..can u please tell me how you resolved it ??

Thank you !!