A problem with BRepFeat_SplitShape

I am getting following errors with this statement.

Statement : BRepFeat_SplitShape splitter;

errors:
error LNK2001: unresolved external symbol "public: virtual void __thiscall BRepFeat_SplitShape::Build(void)" (?Build@BRepFeat_SplitShape@@UAEXXZ)

error LNK2001: unresolved external symbol "public: virtual class TopTools_ListOfShape const & __thiscall BRepFeat_SplitShape::Modified(class TopoDS_Shape const &)" (?Modified@BRepFeat_SplitShape@@UAEABVTopTools_ListOfShape@@ABVTopoDS_Shape@@@Z)

error LNK2001: unresolved external symbol "public: virtual unsigned int __thiscall BRepFeat_SplitShape::IsDeleted(class TopoDS_Shape const &)" (?IsDeleted@BRepFeat_SplitShape@@UAEIABVTopoDS_Shape@@@Z)

If anyone have an idea why am I getting these errors?? please help me....

Trevor O's picture

Does anyone have a solution to this problem? Using the precompiled 6.9.1 win64 vc10 libraries I have a similar problem (unresolved external symbol for virtual void __cdecl BRepFeat_SplitShape::Build(void)" (?Build@BRepFeat_SplitShape@@UEAAXXZ)). By looking at the OpenCascade project I determined that this function should be part of TKFeat. I have TKFeat.lib as one of the linker dependencies. I checked TKFeat.lib with 'dumpbin /exports' and it shows the ?Build@BRepFeat_SplitShape@@UEAAXXZ (public: virtual void __cdecl BRepFeat_SplitShape::Build(void)) function. What am I doing wrong? Thanks.

Qr Qr's picture

Just unrelated remark: prefer using OpenCascade's Booleans instead of this messy and unstable BRepFeat_SplitShape.