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

XCAFDoc_DocumentTool

Steve Howgill's picture
Forums: 

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