Eclipse C/C++ and OpenCASCADE Libraries problem [message #814575] |
Tue, 06 March 2012 11:10  |
Eclipse User |
|
|
|
Dear all,
This is my first trial to work with eclipse and opencascade, after i try to configure opencascade libraries with eclipse, i tried the following coding for testing, and found the error noted down
CODING
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <STEPControl_Reader.hxx>
#include <TopoDS_Shape.hxx>
#include <BRepTools.hxx>
#include <XSControl_Reader.hxx>
#include <TopTools_SequenceOfShape.hxx>
#include <Handle_Standard_Transient.hxx>
#include <TColStd_SequenceOfTransient.hxx>
int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
STEPControl_Reader reader;
IFSelect_ReturnStatus stat = reader.ReadFile("screw.stp");
return 0;
}
Error message!
**** Build of configuration Debug for project Open1 ****
make all
Building file: ../src/Open1.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/opencascade -I/usr/lib -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/Open1.d" -MT"src/Open1.d" -o"src/Open1.o" "../src/Open1.cpp"
../src/Open1.cpp: In function 'int main()':
../src/Open1.cpp:22: warning: unused variable 'stat'
Finished building: ../src/Open1.cpp
Building target: Open1
Invoking: GCC C++ Linker
g++ -o"Open1" ./src/Open1.o
./src/Open1.o: In function `main':
/home/de052/workspace/example/Open1/Debug/../src/Open1.cpp:21: undefined reference to `STEPControl_Reader::STEPControl_Reader()'
/home/de052/workspace/example/Open1/Debug/../src/Open1.cpp:22: undefined reference to `XSControl_Reader::ReadFile(char const*)'
./src/Open1.o: In function `~Handle_Standard_Transient':
/usr/include/opencascade/Handle_Standard_Transient.hxx:71: undefined reference to `Handle_Standard_Transient::EndScope()'
./src/Open1.o: In function `~TColStd_SequenceOfTransient':
/usr/include/opencascade/TColStd_SequenceOfTransient.hxx:76: undefined reference to `TColStd_SequenceOfTransient::Clear()'
./src/Open1.o: In function `~TopTools_SequenceOfShape':
/usr/include/opencascade/TopTools_SequenceOfShape.hxx:73: undefined reference to `TopTools_SequenceOfShape::Clear()'
./src/Open1.o: In function `XSControl_Reader::operator delete(void*)':
/usr/include/opencascade/XSControl_Reader.hxx:119: undefined reference to `Standard::Free(void*&)'
./src/Open1.o: In function `~XSControl_Reader':
/usr/include/opencascade/XSControl_Reader.hxx:135: undefined reference to `vtable for XSControl_Reader'
./src/Open1.o: In function `STEPControl_Reader::operator delete(void*)':
/usr/include/opencascade/STEPControl_Reader.hxx:100: undefined reference to `Standard::Free(void*&)'
./src/Open1.o: In function `~STEPControl_Reader':
/usr/include/opencascade/STEPControl_Reader.hxx:86: undefined reference to `vtable for STEPControl_Reader'
collect2: ld returned 1 exit status
make: *** [Open1] Error 1
Any help will be appreciated,
game
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09293 seconds