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

Pb to compil CAS3.0/src/DrawResources/TestDraw

Anonymous's picture
Forums: 

I find file TestDraw.cxx in CAS3.0/src/DrawResources/ I compile this file with :

g++ -DLIN -DLININTEL -DCSFDB -DNO_CXX_EXCEPTION -DNo_Exception -funsigned-char -MD -Wall -x c++ -I${CASROOT}/src/Draw -I${CASROOT}/drv/Draw -I${CASROOT}/inc -L${CASROOT}/Linux/lib mydraw.cxx -o prog -lTKDraw -lTKBRep -lTestTopOpeDraw -lTKXSDRAW -TKernel

and i obtain this:

/usr/local/CAS3.0/src/Draw/Draw_Appli.hxx: In function `int main(int, char **)': /usr/local/CAS3.0/src/Draw/Draw_Appli.hxx:30: too few arguments to function `void Draw_Appli(Standard_Integer , char **, void (*)(class Draw_Interpretor &))' mydraw.cxx:12: at this point in file mydraw.cxx: In function `Standard_Integer macommande(class Draw_Interpretor &, Standard_Integer, char **)': mydraw.cxx:38: variable `class TopoDS_Shape S' has initializer but incomplete type mydraw.cxx:38: invalid use of undefined type `class TopoDS_Shape' mydraw.cxx:38: no match for 'Draw_Interpretor &

What could i do?

philippe poncot's picture

DrawResources is not a C++ Devloppment Unit. You will fing a better example in TTOPOLOGY. Moreover, about add a command in Draw , there is a FAQ " DRAW : The Test Environment"

Best regards

Philippe

Beatrice's picture

When i compile the file from TTOPOLOGY it's ok but how execute it?