Link error 2001 in OCC 6.1 using OCAF wizard

Dear Forum members i've been trying with OCC. i worked with OCAF 5.2.4. In that the application wizard were able to create 0 link error executable. But at present i upgrated with 6.1 (Before that I've uninstalled my old 5.2.4 version)and the OCAF wizard generated files shows the following link error. Once again i've install the software in a new pc. It shows the same error. i don't konw how to over come this. Pls help me in this. Thanks in Advance

--------------------Configuration: lnt - Win32 Debug--------------------
Linking...
Creating library Debug/lnt.lib and object Debug/lnt.exp
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library
lnt.obj : error LNK2001: unresolved external symbol "public: __thiscall TDF_Transaction::TDF_Transaction(class TCollection_AsciiString const &)" (??0TDF_Transaction@@QAE@ABVTCollection_AsciiString@@@Z)
lntDoc.obj : error LNK2001: unresolved external symbol "public: __thiscall TDF_Transaction::TDF_Transaction(class TCollection_AsciiString const &)" (??0TDF_Transaction@@QAE@ABVTCollection_AsciiString@@@Z)
lntView.obj : error LNK2001: unresolved external symbol "public: __thiscall TDF_Transaction::TDF_Transaction(class TCollection_AsciiString const &)" (??0TDF_Transaction@@QAE@ABVTCollection_AsciiString@@@Z)
lntDoc.obj : error LNK2001: unresolved external symbol "public: __thiscall Handle_TDocStd_Document::~Handle_TDocStd_Document(void)" (??1Handle_TDocStd_Document@@QAE@XZ)
lntView.obj : error LNK2001: unresolved external symbol "public: __thiscall Handle_TDocStd_Document::~Handle_TDocStd_Document(void)" (??1Handle_TDocStd_Document@@QAE@XZ)
lntDoc.obj : error LNK2001: unresolved external symbol "public: void __thiscall TDocStd_Application::Close(class Handle_TDocStd_Document const &)" (?Close@TDocStd_Application@@QAEXABVHandle_TDocStd_Document@@@Z)
lntDoc.obj : error LNK2001: unresolved external symbol "public: enum CDF_StoreStatus __thiscall TDocStd_Application::SaveAs(class Handle_TDocStd_Document const &,class TCollection_ExtendedString const &)" (?SaveAs@TDocStd_Application@@QAE?AW4CDF_Sto
reStatus@@ABVHandle_TDocStd_Document@@ABVTCollection_ExtendedString@@@Z)
lntDoc.obj : error LNK2001: unresolved external symbol "public: enum CDF_RetrievableStatus __thiscall TDocStd_Application::Open(class TCollection_ExtendedString const &,class Handle_TDocStd_Document &)" (?Open@TDocStd_Application@@QAE?AW4CDF_Retriev
ableStatus@@ABVTCollection_ExtendedString@@AAVHandle_TDocStd_Document@@@Z)
lntView.obj : error LNK2001: unresolved external symbol "public: unsigned int __thiscall TDF_Label::FindAttribute(class Standard_GUID const &,class Handle_TDF_Attribute &)const " (?FindAttribute@TDF_Label@@QBEIABVStandard_GUID@@AAVHandle_TDF_Attribu
te@@@Z)
lntView.obj : error LNK2001: unresolved external symbol "public: __thiscall Handle_TDF_Data::~Handle_TDF_Data(void)" (??1Handle_TDF_Data@@QAE@XZ)
lntView.obj : error LNK2001: unresolved external symbol "public: class Handle_TDF_Data __thiscall TDocStd_Document::GetData(void)const " (?GetData@TDocStd_Document@@QBE?AVHandle_TDF_Data@@XZ)
lntView.obj : error LNK2001: unresolved external symbol "public: __thiscall TDF_Label::TDF_Label(void)" (??0TDF_Label@@QAE@XZ)
lntView.obj : error LNK2001: unresolved external symbol "private: __thiscall TDF_Label::TDF_Label(class TDF_LabelNode * const &)" (??0TDF_Label@@AAE@ABQAVTDF_LabelNode@@@Z)
OcafApplication.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall TDocStd_Application::InitDocument(class Handle_TDocStd_Document const &)const " (?InitDocument@TDocStd_Application@@UBEXABVHandle_TDocStd_Document@@@Z)
OcafApplication.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall TDocStd_Application::NewDocument(class TCollection_ExtendedString const &,class Handle_TDocStd_Document &)" (?NewDocument@TDocStd_Application@@UAEXABVTC
ollection_ExtendedString@@AAVHandle_TDocStd_Document@@@Z)
OcafApplication.obj : error LNK2001: unresolved external symbol "public: virtual class Handle_Resource_Manager __thiscall TDocStd_Application::Resources(void)" (?Resources@TDocStd_Application@@UAE?AVHandle_Resource_Manager@@XZ)
OcafApplication.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall TDocStd_Application::~TDocStd_Application(void)" (??1TDocStd_Application@@UAE@XZ)
OcafApplication.obj : error LNK2001: unresolved external symbol "class Handle_Standard_Type & __cdecl TDocStd_Application_Type_(void)" (?TDocStd_Application_Type_@@YAAAVHandle_Standard_Type@@XZ)
OcafApplication.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall TDocStd_Application::IsKind(class Handle_Standard_Type const &)const " (?IsKind@TDocStd_Application@@UBEIABVHandle_Standard_Type@@@Z)
OcafApplication.obj : error LNK2001: unresolved external symbol "public: __thiscall Handle_TDocStd_Application::~Handle_TDocStd_Application(void)" (??1Handle_TDocStd_Application@@QAE@XZ)
OcafApplication.obj : error LNK2001: unresolved external symbol "protected: __thiscall TDocStd_Application::TDocStd_Application(void)" (??0TDocStd_Application@@IAE@XZ)
Debug/lnt.exe : fatal error LNK1120: 18 unresolved externals
Error executing link.exe.

lnt.exe - 22 error(s), 1 warning(s)

Patrik Mueller's picture

Hi,

add "TKLCAF.lib" to your project.

Greets,

Patrik

M.G.THIRUNAVUKKARASU's picture

Thank you very much Patrik, it is running now.