DiscussionsIssue archiveOther usage issues

Archived discussion

error opencascade with mvs 2010

Other usage issuesSat, 11/10/2012 - 22:302 replies

Browse this forum
QuestionAuthor

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

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hello Author,

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

Commenter-1

02Author

now it ok,Thank you very much Pawel.