Error reading Step Assembly

I am still having an error anytime I am using STEPCAF tools to read a step file.
And I just add the folowing code and included the .hxx files needed.
Handle_XCAFApp_Application app = XCAFApp_Application::GetApplication ();
Handle_TDocStd_Document document;
app->NewDocument ("MDTV-XCAF", document);

STEPCAFControl_Reader reader;
reader.ReadFile ("afile.step");

Thank you for your help

king...
Creating library ../../Debug/TexturesExt.lib and object ../../Debug/TexturesExt.exp
TexturesExt_Presentation.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall XSControl_Reader::NbRootsForTransfer(void)" (?NbRootsForTransfer@XSControl_Reader@@UAEHXZ)
TexturesExt_Presentation.obj : error LNK2001: unresolved external symbol "public: __thiscall Handle_XSControl_WorkSession::~Handle_XSControl_WorkSession(void)" (??1Handle_XSControl_WorkSession@@QAE@XZ)
../../Debug/TexturesExt.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

TexturesExt.exe - 3 error(s), 0 warning(s)

mamadou sy's picture

I would appreciate if anyone can send me a working code able to read any step assembly file.
Thank you madou007@hotmail.com

Kevin Malachowski's picture

This is a random shot in the dark, but did you ever happen to get this to work?