1. 程式人生 > >在Open Cascade中建立基本幾何實體

在Open Cascade中建立基本幾何實體

您好,我在進行學習occ實體建立的時候嘗試使用他所給的那個瓶子的程式碼“src/MakeBottle.cxx”想生成出來一個瓶子,但是在編譯的過程中出現一些問題。
1>Bottle.obj : error LNK2019: 無法解析的外部符號 "public: void __cdecl ChFiDS_ListOfStripe::Clear(void)" ([email protected][email protected]@QEAAXXZ),該符號在函式 "public: __cdecl ChFiDS_ListOfStripe::~ChFiDS_ListOfStripe(void)" ([email protected]@[email protected]) 中被引用
1>Bottle.obj : error LNK2019: 無法解析的外部符號 "public: __cdecl ChFiDS_IndexedDataMapOfVertexListOfStripe::ChFiDS_IndexedDataMapOfVertexListOfStripe(int)" (
[email protected]
@[email protected]@Z),該符號在函式 "public: void __cdecl ChFiDS_IndexedDataMapOfVertexListOfStripe::`default constructor closure'(void)" ([email protected]@QEAAXXZ) 中被引用
1>Bottle.obj : error LNK2019: 無法解析的外部符號 "public: void __cdecl ChFiDS_IndexedDataMapOfVertexListOfStripe::Clear(void)" (
[email protected]
[email protected]@QEAAXXZ),該符號在函式 "public: __cdecl ChFiDS_IndexedDataMapOfVertexListOfStripe::~ChFiDS_IndexedDataMapOfVertexListOfStripe(void)" ([email protected]@[email protected]) 中被引用
1>Bottle.obj : error LNK2019: 無法解析的外部符號 "public: void __cdecl ChFiDS_Regularities::Clear(void)" (
[email protected]
[email protected]@QEAAXXZ),該符號在函式 "public: __cdecl ChFiDS_Regularities::~ChFiDS_Regularities(void)" ([email protected]@[email protected]) 中被引用
1>Bottle.obj : error LNK2019: 無法解析的外部符號 "public: virtual void __cdecl ChFi3d_Builder::Delete(void)" ([email protected][email protected]@UEAAXXZ),該符號在函式 "public: virtual __cdecl ChFi3d_Builder::~ChFi3d_Builder(void)" ([email protected]@[email protected]) 中被引用
1>Bottle.obj : error LNK2001: 無法解析的外部符號 "protected: virtual void __cdecl ChFi3d_Builder::SimulSurf(class Handle_ChFiDS_SurfData &,class Handle_ChFiDS_HElSpine const &,class Handle_ChFiDS_Spine const &,int,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,class Handle_BRepAdaptor_HCurve2d const &,class Handle_BRepAdaptor_HSurface const &,class Handle_BRepAdaptor_HCurve2d const &,unsigned int &,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,enum TopAbs_Orientation,double,double,double &,double &,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,class math_Vector const &)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
1>Bottle.obj : error LNK2001: 無法解析的外部符號 "protected: virtual void __cdecl ChFi3d_Builder::SimulSurf(class Handle_ChFiDS_SurfData &,class Handle_ChFiDS_HElSpine const &,class Handle_ChFiDS_Spine const &,int,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,enum TopAbs_Orientation,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,class Handle_BRepAdaptor_HCurve2d const &,class Handle_BRepAdaptor_HSurface const &,class Handle_BRepAdaptor_HCurve2d const &,unsigned int &,double,double,double &,double &,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,class math_Vector const &)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
1>Bottle.obj : error LNK2001: 無法解析的外部符號 "protected: virtual void __cdecl ChFi3d_Builder::SimulSurf(class Handle_ChFiDS_SurfData &,class Handle_ChFiDS_HElSpine const &,class Handle_ChFiDS_Spine const &,int,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,class Handle_BRepAdaptor_HCurve2d const &,class Handle_BRepAdaptor_HSurface const &,class Handle_BRepAdaptor_HCurve2d const &,unsigned int &,enum TopAbs_Orientation,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,class Handle_BRepAdaptor_HCurve2d const &,class Handle_BRepAdaptor_HSurface const &,class Handle_BRepAdaptor_HCurve2d const &,unsigned int &,enum TopAbs_Orientation,double,double,double &,double &,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,class math_Vector const &)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
1>Bottle.obj : error LNK2001: 無法解析的外部符號 "protected: virtual void __cdecl ChFi3d_Builder::PerformSurf(class ChFiDS_SequenceOfSurfData &,class Handle_ChFiDS_HElSpine const &,class Handle_ChFiDS_Spine const &,int,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,class Handle_BRepAdaptor_HCurve2d const &,class Handle_BRepAdaptor_HSurface const &,class Handle_BRepAdaptor_HCurve2d const &,unsigned int &,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,enum TopAbs_Orientation,double,double,double,double &,double &,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,class math_Vector const &)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
1>Bottle.obj : error LNK2001: 無法解析的外部符號 "protected: virtual void __cdecl ChFi3d_Builder::PerformSurf(class ChFiDS_SequenceOfSurfData &,class Handle_ChFiDS_HElSpine const &,class Handle_ChFiDS_Spine const &,int,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,enum TopAbs_Orientation,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,class Handle_BRepAdaptor_HCurve2d const &,class Handle_BRepAdaptor_HSurface const &,class Handle_BRepAdaptor_HCurve2d const &,unsigned int &,double,double,double,double &,double &,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,class math_Vector const &)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
1>Bottle.obj : error LNK2001: 無法解析的外部符號 "protected: virtual void __cdecl ChFi3d_Builder::PerformSurf(class ChFiDS_SequenceOfSurfData &,class Handle_ChFiDS_HElSpine const &,class Handle_ChFiDS_Spine const &,int,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,class Handle_BRepAdaptor_HCurve2d const &,class Handle_BRepAdaptor_HSurface const &,class Handle_BRepAdaptor_HCurve2d const &,unsigned int &,enum TopAbs_Orientation,class Handle_BRepAdaptor_HSurface const &,class Handle_Adaptor3d_TopolTool const &,class Handle_BRepAdaptor_HCurve2d const &,class Handle_BRepAdaptor_HSurface const &,class Handle_BRepAdaptor_HCurve2d const &,unsigned int &,enum TopAbs_Orientation,double,double,double,double &,double &,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,class math_Vector const &)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
1>Bottle.obj : error LNK2019: 無法解析的外部符號 "public: __cdecl BRepFilletAPI_MakeFillet::BRepFilletAPI_MakeFillet(class TopoDS_Shape const &,enum ChFi3d_FilletShape)" ([email protected]@[email protected][email protected]@[email protected]@@Z),該符號在函式 "class TopoDS_Shape __cdecl MakeBottle(double,double,double)" ([email protected]@[email protected]@[email protected]) 中被引用
1>Bottle.obj : error LNK2019: 無法解析的外部符號 "public: void __cdecl BRepFilletAPI_MakeFillet::Add(double,class TopoDS_Edge const &)" ([email protected][email protected]@[email protected]@@Z),該符號在函式 "class TopoDS_Shape __cdecl MakeBottle(double,double,double)" ([email protected]@[email protected]@[email protected]) 中被引用

我新增的lib都是64位的debug也是64的,不存在不搭配產生這種錯誤的情況。我覺得會不會可能是我少添加了一些lib?
TKernel.lib
TKMath.lib
TKBRep.lib
TKTopAlgo.lib
TKPrim.lib
TKBO.lib
TKG3d.lib
TKGeomAlgo.lib
TKMesh.lib
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib
TKGeomBase.lib
TKSTL.lib
TKIGES.lib
TKXSBase.lib
TKSTEP.lib
以上是我新增的所有lib,還麻煩您有空看一下,問題出在了什麼地方。不勝感激。