Compiling Error

Hi All,
I had written a code which was working so well with OCC V.5.X but in the nweest version the folloing error occures. Could you please guide me to fix it?

regards,
A.Akbari

Linking...
Creating library ../Debug/Viewer3d.lib and object ../Debug/Viewer3d.exp
StdAfx.obj : error LNK2001: unresolved external symbol "public: __thiscall TDF_Transaction::TDF_Transaction(class TCollection_AsciiString const &)" (??0TDF_Transaction@@QAE@ABVTCollection_AsciiString@@@Z)
../Debug/Viewer3d.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Viewer3d.exe - 2 error(s), 0 warning(s)

Patrik Mueller's picture

hi,

since OCCT has rebuild OCAF you have to add another dependency to your project. I think it was "TKLCAF.lib".

Just try it,

Patrik

Ramachandran Kartha's picture

Use Opencascade class browser to find the library or add all the libraries.