OpenCASCADE configuration problem

Dear all, I like to work with Opencascade and eclipse, i found a problem in configuring the libraries into eclipse!
I try to manage with changing the directories in eclipse and try the following coding

int main(void) {

STEPControl_Reader reader;

IFSelect_ReturnStatus stat = reader.ReadFile("screw.stp");

return 0;

Found the following output error:

**** Build of configuration Default for project Name1 ****

make all
g++ -O2 -g -Wall -fmessage-length=0 -c -o Name1.o Name1.cpp
Name1.cpp:12:34: error: STEPControl_Reader.hxx: No such file or directory
Name1.cpp:13:28: error: TopoDS_Shape.hxx: No such file or directory
Name1.cpp:14:25: error: BRepTools.hxx: No such file or directory
Name1.cpp:15:32: error: XSControl_Reader.hxx: No such file or directory
Name1.cpp:16:40: error: TopTools_SequenceOfShape.hxx: No such file or directory
Name1.cpp:17:41: error: Handle_Standard_Transient.hxx: No such file or directory
Name1.cpp:18:43: error: TColStd_SequenceOfTransient.hxx: No such file or directory
Name1.cpp: In function ‘int main()’:
Name1.cpp:21: error: ‘STEPControl_Reader’ was not declared in this scope
Name1.cpp:21: error: expected ‘;’ before ‘reader’
Name1.cpp:23: error: ‘IFSelect_ReturnStatus’ was not declared in this scope
Name1.cpp:23: error: expected ‘;’ before ‘stat’
make: *** [Name1.o] Error 1

Thank u for going through and appreciate any help on this regard


Denis Barbier's picture

You have to tell eclipse where you installed header files.

Game Milky's picture

Thank you for your reply! I already try to define the header file directory in eclipse! I here enclosed the snapshot! I am very new to this arrangement! Could you please give me more information of the problem!


Denis Barbier's picture

Sorry I have no idea, this is related to eclipse but not OpenCascade.