我正在尝试在类对象 Polygon 中创建类对象 Point 的数组。编译时出现几个错误,有人可以帮我修复这些错误/建议一种更好的方法来创建类对象数组吗?
代码已删除
尝试编译时出现以下错误:
Undefined symbols for architecture x86_64:
"Point::MAX_VAL", referenced from:
Point::Point() in ccyVCyNB.o
Point::Point() in ccyVCyNB.o
Point::Point(float, float)in ccyVCyNB.o
Point::Point(float, float)in ccyVCyNB.o
Point::set(float, float)in ccyVCyNB.o
Point::setRange(float, float)in ccyVCyNB.o
"Point::MIN_VAL", referenced from:
Point::Point() in ccyVCyNB.o
Point::Point() in ccyVCyNB.o
Point::Point(float, float)in ccyVCyNB.o
Point::Point(float, float)in ccyVCyNB.o
Point::set(float, float)in ccyVCyNB.o
Point::setRange(float, float)in ccyVCyNB.o
ld: symbol(s) not found for architecture x86_64