For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

unresolved externals = XCAFDoc_DocumentTool::ShapeTool

Malcolm Revenge's picture

I wanna made a simple STEP exporter, try to write this:

Handle_TDocStd_Document document;
document = new TDocStd_Document("Pace Test-StepExporter-");
Handle_XCAFDoc_ShapeTool shapeTool;
shapeTool = XCAFDoc_DocumentTool::ShapeTool(document->Main());

and got this:

 LNK2019: unresolved external symbol "public: static class opencascade::handle<class XCAFDoc_ShapeTool> __cdecl XCAFDoc_DocumentTool::ShapeTool(class TDF_Label const &)" (?ShapeTool@XCAFDoc_DocumentTool@@SA?AV?$handle@VXCAFDoc_ShapeTool@@@opencascade@@AEBVTDF_Label@@@Z) referenced in function "public: void __cdecl RenderItem::export_STEP(class QString)" (?export_STEP@RenderItem@@QEAAXVQString@@@Z)

I alredy attach ALL libraries of OCC and nothing help me...  What the hell ?