XCAFDoc_DocumentTool

Hi all.
When I call XCAFDoc_DocumentTool::IsXCAFDocument(aDoc), I get an unresolved external error when linking, yet I can happily call XCAFDoc_DocumentTool::ShapeTool(aLabel) with no link errors.

Regards

Steve Howgill

Filippo Bottega's picture

It's a little bug in XCAFDoc_DocumentTool.cxx:

Please replace:

Standard_Boolean IsXCAFDocument(const Handle(TDocStd_Document) D)
{
return RootLDocLMap.IsBound(D->Main().Root());
}

with

Standard_Boolean XCAFDoc_DocumentTool::IsXCAFDocument(const Handle(TDocStd_Document)& D)
{
return RootLDocLMap.IsBound(D->Main().Root());
}

and recompile TKXCAF.dsp

Regards,
Filippo Bottega