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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / error opencascade with mvs 2010

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();

     std::cout<<"";
     //return 0;
}

Error:

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.

Pawel
Ear MongHeng 2012/11/12 13:12
now it ok,Thank you very much Pawel.
 
 
Latest news
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!

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