Part 2)Trying to get MakeBottle.cxx to compile.

Continuing from part 1)

Ok…. Obviously something is not right here.
I’m thinking its time to get back to a baseline and try this again….  There’s a install version of opencascade there available for opennovation that/synaptic  I thought I give it a try.
First things first.  I need to figure out how to unistall opencascade.

jonas@Ubuntu4:/opt/OpenCASCADE6.2.0/uninstall/Linux$ sudo java -jar uninstall.jar

For some reason not everything got deleted.  On some file the rm wouldnt work.  I need to work that out later.
I ran across this nice little link discussing file permission:http://www.tuxfiles.org/linuxhelp/filepermissions.html
This got me confused time to call in the calvary(http://ubuntuforums.org/showthread.php?p=5534934#post5534934)

Doh… very obvious…
I left the OCC documentation intact… We’ll see how that works.
Alright… I’m going to try loading open cascade from a different direction. Instructions as per:
http://www.opennovation.org/ubuntu/

Wow… So far so good.
I tried firing up the DRAWEXE test program.  You should find documention on file:///usr/share/doc/opencascade-doc/doc/index.htm#Welcome_to_Open_CASCADE_Technology.htm

I got a irritating error message when I fired up pload ALL
“Cannot load Debug Browser library. DFBrowser command is not attached”
That error didn’t seem to mess up the example given in the tutorial.

In the non-synaptic version of opencascade there is some source called MakeBottle.cxx.  It doesn’t see to be include in the debian download.  Luckily I had copied it to a separate directory.

I tried to compile the source and here are the error messages from the start:

jonas@Ubuntu4:/$ locate MakeBottle.cxx
/home/jonas/OCC_bottle/MakeBottle.cxx
jonas@Ubuntu4:/$ cd /home/jonas/OCC_bottle
jonas@Ubuntu4:~/OCC_bottle$ g++ -I /usr/include/opencascade MakeBottle.cxx
In file included from /usr/include/opencascade/Standard_Integer.hxx:9,
from /usr/include/opencascade/Standard_Address.hxx:21,
from /usr/include/opencascade/Standard.hxx:28,
from /usr/include/opencascade/Handle_Geom_Surface.hxx:29,
from /usr/include/opencascade/BRep_Tool.hxx:29,
from MakeBottle.cxx:1:
/usr/include/opencascade/Standard_values.h:35:2: error: #error “check config.h file or compilation options: either HAVE_LIMITS or HAVE_LIMITS_H should be defined”
In file included from /usr/include/opencascade/Standard_OStream.hxx:7,
from /usr/include/opencascade/Standard.hxx:40,
from /usr/include/opencascade/Handle_Geom_Surface.hxx:29,
from /usr/include/opencascade/BRep_Tool.hxx:29,
from MakeBottle.cxx:1:
/usr/include/opencascade/Standard_Stream.hxx:19:2: error: #error “check config.h file or compilation options: either HAVE_IOSTREAM or HAVE_IOSTREAM_H should be defined”
In file included from /usr/include/opencascade/Standard_OutOfRange.hxx:33,
from /usr/include/opencascade/gp_Mat.lxx:4,
from /usr/include/opencascade/gp_Mat.hxx:326,
from /usr/include/opencascade/gp_Trsf.hxx:32,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/Standard_SStream.hxx:23:4: error: #error “check config.h file or compilation options: either HAVE_IOSTREAM or HAVE_IOSTREAM_H should be defined”
In file included from /usr/include/opencascade/Standard_Address.hxx:21,
from /usr/include/opencascade/Standard.hxx:28,
from /usr/include/opencascade/Handle_Geom_Surface.hxx:29,
from /usr/include/opencascade/BRep_Tool.hxx:29,
from MakeBottle.cxx:1:
/usr/include/opencascade/Standard_Integer.hxx: In function ‘Standard_Integer IntegerFirst()’:
/usr/include/opencascade/Standard_Integer.hxx:129: error: ‘INT_MIN’ was not declared in this scope
/usr/include/opencascade/Standard_Integer.hxx: In function ‘Standard_Integer IntegerLast()’:
/usr/include/opencascade/Standard_Integer.hxx:135: error: ‘INT_MAX’ was not declared in this scope
/usr/include/opencascade/Standard_Integer.hxx: In function ‘Standard_Integer IntegerSize()’:
/usr/include/opencascade/Standard_Integer.hxx:141: error: ‘CHAR_BIT’ was not declared in this scope
In file included from /usr/include/opencascade/Standard_PrimitiveTypes.hxx:23,
from /usr/include/opencascade/Handle_Standard_Transient.hxx:10,
from /usr/include/opencascade/Handle_MMgt_TShared.hxx:33,
from /usr/include/opencascade/Handle_Geom_Geometry.hxx:33,
from /usr/include/opencascade/Handle_Geom_Surface.hxx:33,
from /usr/include/opencascade/BRep_Tool.hxx:29,
from MakeBottle.cxx:1:
/usr/include/opencascade/Standard_Real.hxx: In function ‘Standard_Integer RealSize()’:
/usr/include/opencascade/Standard_Real.hxx:162: error: ‘CHAR_BIT’ was not declared in this scope
In file included from /usr/include/opencascade/Standard_PrimitiveTypes.hxx:41,
from /usr/include/opencascade/Handle_Standard_Transient.hxx:10,
from /usr/include/opencascade/Handle_MMgt_TShared.hxx:33,
from /usr/include/opencascade/Handle_Geom_Geometry.hxx:33,
from /usr/include/opencascade/Handle_Geom_Surface.hxx:33,
from /usr/include/opencascade/BRep_Tool.hxx:29,
from MakeBottle.cxx:1:
/usr/include/opencascade/Standard_Storable.hxx: At global scope:
/usr/include/opencascade/Standard_Storable.hxx:101: error: ‘ostream’ has not been declared
/usr/include/opencascade/Standard_Storable.hxx:146: error: ‘ostream’ has not been declared
In file included from /usr/include/opencascade/Handle_Standard_Transient.hxx:13,
from /usr/include/opencascade/Handle_MMgt_TShared.hxx:33,
from /usr/include/opencascade/Handle_Geom_Geometry.hxx:33,
from /usr/include/opencascade/Handle_Geom_Surface.hxx:33,
from /usr/include/opencascade/BRep_Tool.hxx:29,
from MakeBottle.cxx:1:
/usr/include/opencascade/Standard_Transient_proto.hxx:69: error: ‘ostream’ has not been declared
In file included from /usr/include/opencascade/Handle_MMgt_TShared.hxx:33,
from /usr/include/opencascade/Handle_Geom_Geometry.hxx:33,
from /usr/include/opencascade/Handle_Geom_Surface.hxx:33,
from /usr/include/opencascade/BRep_Tool.hxx:29,
from MakeBottle.cxx:1:
/usr/include/opencascade/Handle_Standard_Transient.hxx:182: error: ‘ostream’ has not been declared
In file included from /usr/include/opencascade/TopoDS_Shape.hxx:29,
from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26,
from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26,
from MakeBottle.cxx:3:
/usr/include/opencascade/TopLoc_Location.hxx:178: error: ‘ostream’ has not been declared
In file included from /usr/include/opencascade/TopoDS_Shape.hxx:29,
from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26,
from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26,
from MakeBottle.cxx:3:
/usr/include/opencascade/TopLoc_Location.hxx:218: error: ‘ostream’ has not been declared
In file included from /usr/include/opencascade/Standard_Transient.hxx:14,
from /usr/include/opencascade/MMgt_TShared.hxx:34,
from /usr/include/opencascade/TopoDS_TShape.hxx:40,
from /usr/include/opencascade/TopoDS_Shape.lxx:7,
from /usr/include/opencascade/TopoDS_Shape.hxx:277,
from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26,
from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26,
from MakeBottle.cxx:3:
/usr/include/opencascade/Standard_Type.hxx:141: error: ‘ostream’ has not been declared
/usr/include/opencascade/Standard_Type.hxx:150: error: ‘ostream’ has not been declared
/usr/include/opencascade/Standard_Type.hxx:151: error: ‘ostream’ has not been declared
In file included from /usr/include/opencascade/Standard_Type.hxx:201,
from /usr/include/opencascade/Standard_Transient.hxx:14,
from /usr/include/opencascade/MMgt_TShared.hxx:34,
from /usr/include/opencascade/TopoDS_TShape.hxx:40,
from /usr/include/opencascade/TopoDS_Shape.lxx:7,
from /usr/include/opencascade/TopoDS_Shape.hxx:277,
from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26,
from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26,
from MakeBottle.cxx:3:
/usr/include/opencascade/Standard_Type.lxx:13: error: expected constructor, destructor, or type conversion before ‘&’ token
In file included from /usr/include/opencascade/Standard_Transient.hxx:14,
from /usr/include/opencascade/MMgt_TShared.hxx:34,
from /usr/include/opencascade/TopoDS_TShape.hxx:40,
from /usr/include/opencascade/TopoDS_Shape.lxx:7,
from /usr/include/opencascade/TopoDS_Shape.hxx:277,
from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26,
from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26,
from MakeBottle.cxx:3:
/usr/include/opencascade/Standard_Type.hxx:211: error: ‘ostream’ has not been declared
In file included from /usr/include/opencascade/TopoDS_Shape.lxx:8,
from /usr/include/opencascade/TopoDS_Shape.hxx:277,
from /usr/include/opencascade/BRepAlgoAPI_BooleanOperation.hxx:26,
from /usr/include/opencascade/BRepAlgoAPI_Fuse.hxx:26,
from MakeBottle.cxx:3:
/usr/include/opencascade/TopAbs.hxx:118: error: ISO C++ forbids declaration of ‘ostream’ with no type
/usr/include/opencascade/TopAbs.hxx:118: error: expected ‘;’ before ‘&’ token
/usr/include/opencascade/TopAbs.hxx:123: error: ISO C++ forbids declaration of ‘ostream’ with no type
/usr/include/opencascade/TopAbs.hxx:123: error: expected ‘;’ before ‘&’ token
/usr/include/opencascade/TopAbs.hxx:128: error: ISO C++ forbids declaration of ‘ostream’ with no type
/usr/include/opencascade/TopAbs.hxx:128: error: expected ‘;’ before ‘&’ token
In file included from /usr/include/opencascade/TopTools_MapOfShape.hxx:26,
from /usr/include/opencascade/BRepLib_MakeWire.hxx:35,
from /usr/include/opencascade/BRepBuilderAPI_MakeWire.hxx:26,
from MakeBottle.cxx:7:
/usr/include/opencascade/TCollection_BasicMap.hxx:134: error: ‘ostream’ has not been declared
In file included from /usr/include/opencascade/Standard_OutOfRange.hxx:33,
from /usr/include/opencascade/gp_Mat.lxx:4,
from /usr/include/opencascade/gp_Mat.hxx:326,
from /usr/include/opencascade/gp_Trsf.hxx:32,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/Standard_SStream.hxx:58: error: expected class-name before ‘{’ token
/usr/include/opencascade/Standard_SStream.hxx:62: error: expected )' before ‘&’ token
In file included from /usr/include/opencascade/Standard_DomainError.hxx:38,
from /usr/include/opencascade/Standard_RangeError.hxx:38,
from /usr/include/opencascade/Standard_OutOfRange.hxx:38,
from /usr/include/opencascade/gp_Mat.lxx:4,
from /usr/include/opencascade/gp_Mat.hxx:326,
from /usr/include/opencascade/gp_Trsf.hxx:32,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/Standard_Failure.hxx:83: error: ‘ostream’ has not been declared
/usr/include/opencascade/Standard_Failure.hxx:84: error: ‘ostream’ has not been declared
In file included from /usr/include/opencascade/Standard_Failure.hxx:168,
from /usr/include/opencascade/Standard_DomainError.hxx:38,
from /usr/include/opencascade/Standard_RangeError.hxx:38,
from /usr/include/opencascade/Standard_OutOfRange.hxx:38,
from /usr/include/opencascade/gp_Mat.lxx:4,
from /usr/include/opencascade/gp_Mat.hxx:326,
from /usr/include/opencascade/gp_Trsf.hxx:32,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/Standard_Failure.lxx:9: error: expected initializer before ‘&’ token
In file included from /usr/include/opencascade/gp_Mat.hxx:326,
from /usr/include/opencascade/gp_Trsf.hxx:32,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/gp_Mat.lxx: In member function ‘void gp_Mat::SetValue(Standard_Integer, Standard_Integer, Standard_Real)’:
/usr/include/opencascade/gp_Mat.lxx:98: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Mat.lxx: In member function ‘const Standard_Real& gp_Mat::Value(Standard_Integer, Standard_Integer) const’:
/usr/include/opencascade/gp_Mat.lxx:115: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Mat.lxx: In member function ‘Standard_Real& gp_Mat::ChangeValue(Standard_Integer, Standard_Integer)’:
/usr/include/opencascade/gp_Mat.lxx:123: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Mat.lxx: In member function ‘void gp_Mat::Divide(Standard_Real)’:
/usr/include/opencascade/gp_Mat.lxx:173: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Mat.lxx: In member function ‘gp_Mat gp_Mat::Divided(Standard_Real) const’:
/usr/include/opencascade/gp_Mat.lxx:192: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/gp_XYZ.hxx:358,
from /usr/include/opencascade/gp_Trsf.hxx:35,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/gp_XYZ.lxx: In member function ‘void gp_XYZ::Normalize()’:
/usr/include/opencascade/gp_XYZ.lxx:206: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_XYZ.lxx: In member function ‘gp_XYZ gp_XYZ::Normalized() const’:
/usr/include/opencascade/gp_XYZ.lxx:213: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/gp_Mat2d.hxx:292,
from /usr/include/opencascade/gp_Trsf2d.hxx:32,
from /usr/include/opencascade/gp_Trsf.lxx:7,
from /usr/include/opencascade/gp_Trsf.hxx:376,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/gp_Mat2d.lxx: In member function ‘void gp_Mat2d::SetValue(Standard_Integer, Standard_Integer, Standard_Real)’:
/usr/include/opencascade/gp_Mat2d.lxx:62: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Mat2d.lxx: In member function ‘const Standard_Real& gp_Mat2d::Value(Standard_Integer, Standard_Integer) const’:
/usr/include/opencascade/gp_Mat2d.lxx:76: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Mat2d.lxx: In member function ‘Standard_Real& gp_Mat2d::ChangeValue(Standard_Integer, Standard_Integer)’:
/usr/include/opencascade/gp_Mat2d.lxx:85: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/gp_XY.hxx:318,
from /usr/include/opencascade/gp_Trsf2d.hxx:35,
from /usr/include/opencascade/gp_Trsf.lxx:7,
from /usr/include/opencascade/gp_Trsf.hxx:376,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/gp_XY.lxx: In member function ‘void gp_XY::Normalize()’:
/usr/include/opencascade/gp_XY.lxx:140: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_XY.lxx: In member function ‘gp_XY gp_XY::Normalized() const’:
/usr/include/opencascade/gp_XY.lxx:147: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/gp_Dir2d.hxx:304,
from /usr/include/opencascade/gp_Vec2d.lxx:5,
from /usr/include/opencascade/gp_Vec2d.hxx:339,
from /usr/include/opencascade/gp_Pnt2d.lxx:6,
from /usr/include/opencascade/gp_Pnt2d.hxx:204,
from /usr/include/opencascade/gp_Trsf2d.lxx:4,
from /usr/include/opencascade/gp_Trsf2d.hxx:279,
from /usr/include/opencascade/gp_Trsf.lxx:7,
from /usr/include/opencascade/gp_Trsf.hxx:376,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/gp_Dir2d.lxx: In constructor ‘gp_Dir2d::gp_Dir2d(const gp_Vec2d&)’:
/usr/include/opencascade/gp_Dir2d.lxx:19: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir2d.lxx: In constructor ‘gp_Dir2d::gp_Dir2d(const gp_XY&)’:
/usr/include/opencascade/gp_Dir2d.lxx:29: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir2d.lxx: In constructor ‘gp_Dir2d::gp_Dir2d(Standard_Real, Standard_Real)’:
/usr/include/opencascade/gp_Dir2d.lxx:38: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir2d.lxx: In member function ‘void gp_Dir2d::SetCoord(Standard_Integer, Standard_Real)’:
/usr/include/opencascade/gp_Dir2d.lxx:48: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir2d.lxx:52: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir2d.lxx: In member function ‘void gp_Dir2d::SetCoord(Standard_Real, Standard_Real)’:
/usr/include/opencascade/gp_Dir2d.lxx:61: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir2d.lxx: In member function ‘void gp_Dir2d::SetX(Standard_Real)’:
/usr/include/opencascade/gp_Dir2d.lxx:70: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir2d.lxx: In member function ‘void gp_Dir2d::SetY(Standard_Real)’:
/usr/include/opencascade/gp_Dir2d.lxx:79: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir2d.lxx: In member function ‘void gp_Dir2d::SetXY(const gp_XY&)’:
/usr/include/opencascade/gp_Dir2d.lxx:89: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/gp_Vec2d.hxx:339,
from /usr/include/opencascade/gp_Pnt2d.lxx:6,
from /usr/include/opencascade/gp_Pnt2d.hxx:204,
from /usr/include/opencascade/gp_Trsf2d.lxx:4,
from /usr/include/opencascade/gp_Trsf2d.hxx:279,
from /usr/include/opencascade/gp_Trsf.lxx:7,
from /usr/include/opencascade/gp_Trsf.hxx:376,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/gp_Vec2d.lxx: In member function ‘void gp_Vec2d::Normalize()’:
/usr/include/opencascade/gp_Vec2d.lxx:140: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Vec2d.lxx: In member function ‘gp_Vec2d gp_Vec2d::Normalized() const’:
/usr/include/opencascade/gp_Vec2d.lxx:147: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/gp_Trsf2d.hxx:279,
from /usr/include/opencascade/gp_Trsf.lxx:7,
from /usr/include/opencascade/gp_Trsf.hxx:376,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/gp_Trsf2d.lxx: In member function ‘Standard_Real gp_Trsf2d::Value(Standard_Integer, Standard_Integer) const’:
/usr/include/opencascade/gp_Trsf2d.lxx:85: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/gp_Dir.hxx:313,
from /usr/include/opencascade/gp_Vec.lxx:6,
from /usr/include/opencascade/gp_Vec.hxx:388,
from /usr/include/opencascade/gp_Trsf.lxx:8,
from /usr/include/opencascade/gp_Trsf.hxx:376,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/gp_Dir.lxx: In constructor ‘gp_Dir::gp_Dir(const gp_Vec&)’:
/usr/include/opencascade/gp_Dir.lxx:18: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In constructor ‘gp_Dir::gp_Dir(const gp_XYZ&)’:
/usr/include/opencascade/gp_Dir.lxx:30: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In constructor ‘gp_Dir::gp_Dir(Standard_Real, Standard_Real, Standard_Real)’:
/usr/include/opencascade/gp_Dir.lxx:41: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In member function ‘void gp_Dir::SetCoord(Standard_Integer, Standard_Real)’:
/usr/include/opencascade/gp_Dir.lxx:53: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx:58: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In member function ‘void gp_Dir::SetCoord(Standard_Real, Standard_Real, Standard_Real)’:
/usr/include/opencascade/gp_Dir.lxx:68: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In member function ‘void gp_Dir::SetX(Standard_Real)’:
/usr/include/opencascade/gp_Dir.lxx:79: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In member function ‘void gp_Dir::SetY(Standard_Real)’:
/usr/include/opencascade/gp_Dir.lxx:90: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In member function ‘void gp_Dir::SetZ(Standard_Real)’:
/usr/include/opencascade/gp_Dir.lxx:101: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In member function ‘void gp_Dir::SetXYZ(const gp_XYZ&)’:
/usr/include/opencascade/gp_Dir.lxx:113: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In member function ‘void gp_Dir::Cross(const gp_Dir&)’:
/usr/include/opencascade/gp_Dir.lxx:170: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In member function ‘gp_Dir gp_Dir::Crossed(const gp_Dir&) const’:
/usr/include/opencascade/gp_Dir.lxx:179: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In member function ‘void gp_Dir::CrossCross(const gp_Dir&, const gp_Dir&)’:
/usr/include/opencascade/gp_Dir.lxx:189: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Dir.lxx: In member function ‘gp_Dir gp_Dir::CrossCrossed(const gp_Dir&, const gp_Dir&) const’:
/usr/include/opencascade/gp_Dir.lxx:199: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/gp_Vec.hxx:388,
from /usr/include/opencascade/gp_Trsf.lxx:8,
from /usr/include/opencascade/gp_Trsf.hxx:376,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/gp_Vec.lxx: In member function ‘Standard_Real gp_Vec::Angle(const gp_Vec&) const’:
/usr/include/opencascade/gp_Vec.lxx:111: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Vec.lxx: In member function ‘Standard_Real gp_Vec::AngleWithRef(const gp_Vec&, const gp_Vec&) const’:
/usr/include/opencascade/gp_Vec.lxx:120: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Vec.lxx: In member function ‘void gp_Vec::Normalize()’:
/usr/include/opencascade/gp_Vec.lxx:213: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/gp_Vec.lxx: In member function ‘gp_Vec gp_Vec::Normalized() const’:
/usr/include/opencascade/gp_Vec.lxx:220: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/gp_Trsf.hxx:376,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:26,
from MakeBottle.cxx:8:
/usr/include/opencascade/gp_Trsf.lxx: In member function ‘Standard_Real gp_Trsf::Value(Standard_Integer, Standard_Integer) const’:
/usr/include/opencascade/gp_Trsf.lxx:69: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/BRepTools_Modifier.hxx:131,
from /usr/include/opencascade/BRepBuilderAPI_ModifyShape.hxx:26,
from /usr/include/opencascade/BRepBuilderAPI_Transform.hxx:35,
from MakeBottle.cxx:8:
/usr/include/opencascade/BRepTools_Modifier.lxx: In member function ‘const TopoDS_Shape& BRepTools_Modifier::ModifiedShape(const TopoDS_Shape&) const’:
/usr/include/opencascade/BRepTools_Modifier.lxx:17: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/TopoDS_Iterator.hxx:142,
from /usr/include/opencascade/TopExp_Explorer.lxx:6,
from /usr/include/opencascade/TopExp_Explorer.hxx:220,
from MakeBottle.cxx:44:
/usr/include/opencascade/TopoDS_Iterator.lxx: In member function ‘const TopoDS_Shape& TopoDS_Iterator::Value() const’:
/usr/include/opencascade/TopoDS_Iterator.lxx:26: warning: deprecated conversion from string constant to ‘char*’
In file included from /usr/include/opencascade/TopoDS.hxx:168,
from MakeBottle.cxx:46:
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static const TopoDS_Vertex& TopoDS::Vertex(const TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:25: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static TopoDS_Vertex& TopoDS::Vertex(TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:37: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static const TopoDS_Edge& TopoDS::Edge(const TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:49: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static TopoDS_Edge& TopoDS::Edge(TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:61: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static const TopoDS_Wire& TopoDS::Wire(const TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:73: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static TopoDS_Wire& TopoDS::Wire(TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:85: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static const TopoDS_Face& TopoDS::Face(const TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:97: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static TopoDS_Face& TopoDS::Face(TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:109: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static const TopoDS_Shell& TopoDS::Shell(const TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:121: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static TopoDS_Shell& TopoDS::Shell(TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:133: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static const TopoDS_Solid& TopoDS::Solid(const TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:145: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static TopoDS_Solid& TopoDS::Solid(TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:157: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static const TopoDS_CompSolid& TopoDS::CompSolid(const TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:169: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static TopoDS_CompSolid& TopoDS::CompSolid(TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:181: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static const TopoDS_Compound& TopoDS::Compound(const TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:193: warning: deprecated conversion from string constant to ‘char*’
/usr/include/opencascade/TopoDS.lxx: In static member function ‘static TopoDS_Compound& TopoDS::Compound(TopoDS_Shape&)’:
/usr/include/opencascade/TopoDS.lxx:205: warning: deprecated conversion from string constant to ‘char*’
jonas@Ubuntu4:~/OCC_bottle$

This is the contents of /usr/include/opencascade/config.h:

/* config.h.  Generated from config.h.in by configure.  */
/* config.h.in.  Generated from configure.in by autoheader.  */

/* Define to one of _getb67′, GETB67', getb67′ for Cray-2 and Cray-YMP
systems. This function is required for alloca.c' support on those systems.
*/
/* #undef CRAY_STACKSEG_END */

/* Define to 1 if using alloca.c’. */
/* #undef C_ALLOCA */

/* define if the compiler allows redefinition of stream input and output */
/* #undef DEF_IOS_OK */

/* Define to 1 if you have alloca', as a function or macro. */
#define HAVE_ALLOCA 1

/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
*/
#define HAVE_ALLOCA_H 1

/* Define to 1 if you have the <bits/sigset.h> header file. */
#define HAVE_BITS_SIGSET_H 1

/* Define to 1 if you have the <bstring.h> header file. */
/* #undef HAVE_BSTRING_H */

/* Define to 1 if you have the <dirent.h> header file. */
#define HAVE_DIRENT_H 1

/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1

/* Define to 1 if you have the <dl.h> header file. */
/* #undef HAVE_DL_H */

/* Define to 1 if you have the <DPS/dpsXclient.h> header file. */
/* #undef HAVE_DPS_DPSXCLIENT_H */

/* Define if we have a function called "finite" in -lm. */
#define HAVE_FINITE

/* Define to 1 if you have the <floatingpoint.h> header file. */
/* #undef HAVE_FLOATINGPOINT_H */

/* Define to 1 if you have the <float.h> header file. */
#define HAVE_FLOAT_H 1

/* Define to 1 if you have the <fstream> header file. */
#define HAVE_FSTREAM 1

/* Define to 1 if you have the <fstream.h> header file. */
/* #undef HAVE_FSTREAM_H */

/* Define to 1 if you have the gethostname’ function. */
#define HAVE_GETHOSTNAME 1

/* Define to 1 if you have the <getopt.h> header file. */
#define HAVE_GETOPT_H 1

/* Define to 1 if you have the <ieeefp.h> header file. */
/* #undef HAVE_IEEEFP_H */

/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1

/* Define to 1 if you have the <iomanip> header file. */
#define HAVE_IOMANIP 1

/* Define to 1 if you have the <iomanip.h> header file. */
/* #undef HAVE_IOMANIP_H */

/* Define to 1 if you have the <ios> header file. */
#define HAVE_IOS 1

/* Define to 1 if you have the <iostream> header file. */
#define HAVE_IOSTREAM 1

/* Define to 1 if you have the <iostream.h> header file. */
/* #undef HAVE_IOSTREAM_H */

/* Define to 1 if you have the <ios.h> header file. */
/* #undef HAVE_IOS_H */

/* Define to 1 if you have the <istream> header file. */
#define HAVE_ISTREAM 1

/* Define to 1 if you have the <istream.h> header file. */
/* #undef HAVE_ISTREAM_H */

/* Define to 1 if you have the <libc.h> header file. */
/* #undef HAVE_LIBC_H */

/* Define to 1 if you have the e' library (-le). */
/* #undef HAVE_LIBE */

/* Define to 1 if you have the inks’ library (-links). */
/* #undef HAVE_LIBINKS */

/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1

/* Define if we have a function called “mallinfo” in -lmalloc. */
/* #undef HAVE_MALLINFO */

/* Define to 1 if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1

/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1

/* Define to 1 if you have the <ndir.h> header file. */
/* #undef HAVE_NDIR_H */

/* Define to 1 if you have the <netdb.h> header file. */
#define HAVE_NETDB_H 1

/* Define to 1 if you have the <net/if.h> header file. */
#define HAVE_NET_IF_H 1

/* Define to 1 if you have the <osfcn.h> header file. */
/* #undef HAVE_OSFCN_H */

/* Define to 1 if you have the <ostream> header file. */
#define HAVE_OSTREAM 1

/* Define to 1 if you have the <ostream.h> header file. */
/* #undef HAVE_OSTREAM_H */

/* Define to 1 if you have the putenv' function. */
#define HAVE_PUTENV 1

/* Define to 1 if you have the <pwd.h> header file. */
#define HAVE_PWD_H 1

/* Define to 1 if you have the regcomp’ function. */
#define HAVE_REGCOMP 1

/* Define to 1 if you have the re_comp' function. */
#define HAVE_RE_COMP 1

/* Define to 1 if you have the <sigfpe.h> header file. */
/* #undef HAVE_SIGFPE_H */

/* Define to 1 if you have the <siginfo.h> header file. */
/* #undef HAVE_SIGINFO_H */

/* Define to 1 if you have the <signal.h> header file. */
#define HAVE_SIGNAL_H 1

/* Define to 1 if you have the statfs’ function. */
#define HAVE_STATFS 1

/* Define to 1 if you have the statvfs' function. */
#define HAVE_STATVFS 1

/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the strcspn’ function. */
#define HAVE_STRCSPN 1

/* Define to 1 if you have the strdup' function. */
#define HAVE_STRDUP 1

/* Define to 1 if you have the <stream.h> header file. */
/* #undef HAVE_STREAM_H */

/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define to 1 if you have the <strstream.h> header file. */
/* #undef HAVE_STRSTREAM_H */

/* Define to 1 if you have the strtol’ function. */
#define HAVE_STRTOL 1

/* Define if we have a function called “ieee_handler” in -lsunmath. */
/* #undef HAVE_SUNMATH */

/* Define to 1 if you have the <sysent.h> header file. */
/* #undef HAVE_SYSENT_H */

/* Define to 1 if you have the <sys/dir.h> header file. */
#define HAVE_SYS_DIR_H 1

/* Define to 1 if you have the <sys/filio.h> header file. */
/* #undef HAVE_SYS_FILIO_H */

/* Define to 1 if you have the <sys/ioctl.h> header file. */
#define HAVE_SYS_IOCTL_H 1

/* Define to 1 if you have the <sys/ipc.h> header file. */
#define HAVE_SYS_IPC_H 1

/* Define to 1 if you have the <sys/machsig.h> header file. */
/* #undef HAVE_SYS_MACHSIG_H */

/* Define to 1 if you have the <sys/mman.h> header file. */
#define HAVE_SYS_MMAN_H 1

/* Define to 1 if you have the <sys/ndir.h> header file. */
/* #undef HAVE_SYS_NDIR_H */

/* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1

/* Define to 1 if you have the <sys/select.h> header file. */
#define HAVE_SYS_SELECT_H 1

/* Define to 1 if you have the <sys/sem.h> header file. */
#define HAVE_SYS_SEM_H 1

/* Define to 1 if you have the <sys/siginfo.h> header file. */
/* #undef HAVE_SYS_SIGINFO_H */

/* Define to 1 if you have the <sys/signal.h> header file. */
#define HAVE_SYS_SIGNAL_H 1

/* Define to 1 if you have the <sys/socket.h> header file. */
#define HAVE_SYS_SOCKET_H 1

/* Define to 1 if you have the <sys/statvfs.h> header file. */
#define HAVE_SYS_STATVFS_H 1

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/systeminfo.h> header file. */
/* #undef HAVE_SYS_SYSTEMINFO_H */

/* Define to 1 if you have the <sys/times.h> header file. */
#define HAVE_SYS_TIMES_H 1

/* Define to 1 if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <sys/unistd.h> header file. */
#define HAVE_SYS_UNISTD_H 1

/* Define to 1 if you have the <sys/utsname.h> header file. */
#define HAVE_SYS_UTSNAME_H 1

/* Define to 1 if you have the <sys/vfs.h> header file. */
#define HAVE_SYS_VFS_H 1

/* Define to 1 if you have the <sys/vnode.h> header file. */
/* #undef HAVE_SYS_VNODE_H */

/* Define to 1 if you have the <time.h> header file. */
#define HAVE_TIME_H 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

/* Define to 1 if you have the <values.h> header file. */
#define HAVE_VALUES_H 1

/* Define to 1 if you have the <X11/extensions/multibuf.h> header file. */
#define HAVE_X11_EXTENSIONS_MULTIBUF_H 1

/* Define to 1 if you have the <X11/extensions/readdisplay.h> header file. */
/* #undef HAVE_X11_EXTENSIONS_READDISPLAY_H */

/* Define to 1 if you have the <X11/extensions/transovl.h> header file. */
/* #undef HAVE_X11_EXTENSIONS_TRANSOVL_H */

/* Define to 1 if you have the <Xmu/Editres.h> header file. */
#define HAVE_XMU_EDITRES_H 1

/* Define to 1 if your C compiler doesn’t accept -c and -o together. */
/* #undef NO_MINUS_C_MINUS_O */

/* define if the class ostream has member function form */
/* #undef OSTREAM_FORM_OK */

/* Name of package */
#define PACKAGE “opencas”

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT “”

/* Define to the full name of this package. */
#define PACKAGE_NAME “OpenCAS”

/* Define to the full name and version of this package. */
#define PACKAGE_STRING “OpenCAS 5.0DVP1”

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME “opencas”

/* Define to the version of this package. */
#define PACKAGE_VERSION “5.0DVP1”

/* Define to 1 if the C compiler supports function prototypes. */
#define PROTOTYPES 1

/* Define as the return type of signal handlers (int' or void’). */
#define RETSIGTYPE void

/* define if the function semctl takes a value */
/* #undef SEMCTL_NO_REFERENCE */

/* define if the function semop takes a value */
/* #undef SEMOP_NO_REFERENCE */

/* define if semun has member __buf */
/* #undef SEMUN_BUF_DEFINED */

/* define if the union semun is in sys/sem.h */
/* #undef SEMUN_DEFINED */

/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at runtime.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1

/* Define to 1 if your <sys/time.h> declares struct tm'. */
/* #undef TM_IN_SYS_TIME */

/* Version number of package */
#define VERSION "5.0DVP1"

/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
/* #undef WORDS_BIGENDIAN */

/* Define to 1 if on AIX 3.
System headers sometimes define this.
We just want to avoid a redefinition error message.  */
#ifndef _ALL_SOURCE
/* # undef _ALL_SOURCE */
#endif

/* Define like PROTOTYPES; this can be used by system headers. */
#define __PROTOTYPES 1

/* Define to unsigned int’ if <sys/types.h> does not define. */
/* #undef size_t */

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *