Hi,
I'm trying to compile the opennurbs toolkit and keep getting the
messages shown below. I don't know much about c++, but I would like to
use this package. Any help on getting these errors worked out would be
greatly appreciated. My system is Linux and gcc 4.1.1. Thanks.
John
==============================================
g++ -g -Wall -Wmissing-prototypes -D_GNU_SOURCE -I. -c
opennurbs_3dm_attributes.cpp -o opennurbs_3dm_attributes.o
cc1plus: warning: command line option "-Wmissing-prototypes" is valid
for C/ObjC but not for C++
opennurbs_nurbscurve.h:40: error: extra qualification `ON_NurbsCurve::'
on member `New'
opennurbs_nurbscurve.h:43: error: extra qualification `ON_NurbsCurve::'
on member `New'
opennurbs_nurbscurve.h:46: error: extra qualification `ON_NurbsCurve::'
on member `New'
==============================================
The pertaining lines in the file opennurbs_nurbscurve.h are
class ON_NurbsCurve;
class ON_CLASS ON_NurbsCurve : public ON_Curve
{
ON_OBJECT_DECLARE(ON_NurbsCurve);
public:
/*
Description:
Use ON_NurbsCurve::New(...) instead of new ON_NurbsCurve(...)
Returns:
Pointer to an ON_NurbsCurve. Destroy by calling delete.
Remarks:
See static ON_Brep* ON_Brep::New() for details.
*/
static ON_NurbsCurve* ON_NurbsCurve::New();
static ON_NurbsCurve* ON_NurbsCurve::New(
const ON_NurbsCurve& nurbs_curve
);
static ON_NurbsCurve* ON_NurbsCurve::New(
const ON_BezierCurve& bezier_curve
);
static ON_NurbsCurve* ON_NurbsCurve::New(
int dimension,
BOOL bIsRational,
int order,
int cv_count
);