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

"or" is an ISO C++ trigraph

Robert Boehne's picture

There appears to be an error in BRepTools_Quilt.cxx. This error was not present in my tree on Oct. 24, so it must be the result of a recent change, some time between the 24th and the 29th (today).

From the error message below, "or" is interpreted as the trigraph for the logical operator ||, as defined in the ISO C++ standard. In C++ "or" is a reserved word and cannot be used as a variable name. The fix is simple, change the variable name.

g++ -DHAVE_CONFIG_H -I. -I/icarus/KAS/C40/ros/src/TKBRep -I../.. -I/icarus/KAS/C40/ros/inc -I/icarus/KAS/C40/ros/drv/TopoDS -I/icarus/KAS/C40/ros/drv/TopLoc -I/icarus/KAS/C40/ros/drv/TopExp -I/icarus/KAS/C40/ros/drv/TopTools -I/icarus/KAS/C40/ros/drv/MeshDS -I/icarus/KAS/C40/ros/drv/BRep -I/icarus/KAS/C40/ros/drv/BRepLProp -I/icarus/KAS/C40/ros/drv/BRepAdaptor -I/icarus/KAS/C40/ros/drv/BRepTools -I/icarus/KAS/C40/ros/drv/MgtBRepAbs -g -O2 -DCSFDB -c /icarus/KAS/C40/ros/src/BRepTools/BRepTools_Quilt.cxx -MT BRepTools_Quilt.lo -MD -MP -MF .deps/BRepTools_Quilt.TPlo -fPIC -DPIC -o .libs/BRepTools_Quilt.o /icarus/KAS/C40/ros/src/BRepTools/BRepTools_Quilt.cxx: In member function `void BRepTools_Quilt::Bind(const TopoDS_Edge&, const TopoDS_Edge&)': /icarus/KAS/C40/ros/src/BRepTools/BRepTools_Quilt.cxx:301: parse error before `

||' token /icarus/KAS/C40/ros/src/BRepTools/BRepTools_Quilt.cxx:304: parse error before `

||' token /icarus/KAS/C40/ros/src/BRepTools/BRepTools_Quilt.cxx:306: `VNew' undeclared

(first use this function) /icarus/KAS/C40/ros/src/BRepTools/BRepTools_Quilt.cxx:306: (Each undeclared

identifier is reported only once for each function it appears in.) /icarus/KAS/C40/ros/src/BRepTools/BRepTools_Quilt.cxx:319: confused by earlier errors, bailing out gmake.lnx22[3]: *** [BRepTools_Quilt.lo] Error 1