Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics

error opencascade with mvs 2010

error opencascade with mvs 2010
Ear MongHeng 2012/11/10 19:30
hi everyone,
can anyone help me to resolve this problem because this is a first time that i use a open cascade with mvs 2010

// ReadStepFile.cpp : Defines the entry point for the console application.

#include "stdafx.h"
#include <STEPControl_Reader.hxx>
#include <TopoDS_Shape.hxx>
#include <BRepTools.hxx>
#include <iostream>
//#include <XSControl_Reader.hxx>
//#include <TopTools_SequenceOfShape.hxx>
//#include <Handle_Standard_Transient.hxx>

Standard_Integer _tmain()
     STEPControl_Reader reader;
     IFSelect_ReturnStatus stat = reader.ReadFile("");

     Standard_Integer sti = reader.NbRootsForTransfer();

     //return 0;


Error     8     error LNK2019: unresolved external symbol "public: void __thiscall TopTools_SequenceOfShape::Clear(void)" (?Clear@TopTools_SequenceOfShape@@QAEXXZ) referenced in function "public: __thiscall TopTools_SequenceOfShape::~TopTools_SequenceOfShape(void)" (??1TopTools_SequenceOfShape@@QAE@XZ)     c:\Users\lucky computer\documents\visual studio 2010\Projects\ReadStepFile\ReadStepFile\ReadStepFile.obj     ReadStepFile

Error     7     error LNK2019: unresolved external symbol "public: void __thiscall TColStd_SequenceOfTransient::Clear(void)" (?Clear@TColStd_SequenceOfTransient@@QAEXXZ) referenced in function "public: __thiscall TColStd_SequenceOfTransient::~TColStd_SequenceOfTransient(void)" (??1TColStd_SequenceOfTransient@@QAE@XZ)     c:\Users\lucky computer\documents\visual studio 2010\Projects\ReadStepFile\ReadStepFile\ReadStepFile.obj     ReadStepFile
You have to be logged in to download the attached file
Pawel 2012/11/11 14:46
Hello Ear,

you have to include corresponding libs: TKernel, TKStep etc.

Ear MongHeng 2012/11/12 13:12
now it ok,Thank you very much Pawel.
Latest news
  • JT Assistant Linux and CAD Assistant
  • Open CASCADE JT Assistant
  • OCCT Applications

  • © OPEN CASCADE 2000 - 2015  |  Search  |  Contacts   |  Site map