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

Related pages

problem with a little program

Max E. Rizzi's picture

Hi to all, I want to use OpenCascade for some project. I have start to make some simple code with the 3.0 (binary) but I've some problem. What's wrong in the following code? I compile it with this option:

-DLIN -DLININTEL -DCSFDB -DNO_CXX_EXCEPTION -I/home/CAS3.0/inc -L/home/CAS3.0/Linux/lib -lTKG 3d -lTKV3d

but when I run it, I obtain only the first 'A' and then a coredump... If I substitute the Graphics3d_GraphicDevice... line with this line:

Handle(Xw_GraphicDevice) GD = new Xw_GraphicDevice("");

It run well and a window appear for 10 seconds. Obviusly I set the following environ:

export CSF_Graphic3dLib="OpenGl" export CSF_GraphicShr="/home/CAS3.0/Linux/lib/" export CSF_MDTVFontDirectory="/home/CAS3.0/src/FontMFT" export CSF_MDTVTexturesDirectory="/home/CAS3.0/src/Textures" export CSF_UnitsDefinition="/home/CAS3.0/src/UnitsAPI/Units.dat" export CSF_UnitsLexicon="/home/CAS3.0/src/UnitsAPI/Lexi_Expr.dat" export CASROOT="/home/CAS3.0" export MMGT_CLEAR="1"

---8 #include

#include #include #include #include #include #include #include #include #include #include #include #include

int main(int argc, char *argv[]) {

short int i;


Handle(Graphic3d_GraphicDevice) GD = new Graphic3d_GraphicDevice(""); puts("A");

Handle(Xw_Window) W = new Xw_Window(GD,"Test V3d",0.5,0.5,0.5,0.5);




return 0; } ---8

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.