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

error opencascade with mvs 2010

Ear MongHeng's picture
Forums: 

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
#include
#include
#include
//#include
//#include
//#include

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

Pawel's picture

Hello Ear,

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

Pawel

Ear MongHeng's picture

now it ok,Thank you very much Pawel.