objectarx实例开发例程求教
objectarx实例开发例程求教
[i=s] 本帖最后由 catface 于 9-1-3 09:21 pm 编辑 [/i]
编译后告警如下:
--------------------configuration: test - win32 debug--------------------
compiling...
pubfunction.cpp
c:\documents and settings\def\桌面\test\pubfunction.h(19) : error c2143: syntax error : missing ',' before '*'
c:\documents and settings\def\桌面\test\pubfunction.h(19) : error c2059: syntax error : '*'
c:\documents and settings\def\桌面\test\pubfunction.cpp(33) : error c2511: 'polytogecurve' : overloaded member function 'bool (const class acdbpolyline *& ,class acgecurve2d *& )' not found in 'cpubfunction'
c:\documents and settings\def\桌面\test\pubfunction.h(13) : see declaration of 'cpubfunction'
cpp文件中
bool cpubfunction:

olytogecurve(const acdbpolyline *&ppline, acgecurve2d *&pgecurve)
{
......
return true;
}
h文件中
// pubfunction.h: interface for the cpubfunction class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(afx_pubfunction_h__504854c2_fd78_408c_ab44_c7d007fcc09e__included_)
#define afx_pubfunction_h__504854c2_fd78_408c_ab44_c7d007fcc09e__included_
#if _msc_ver > 1000
#pragma once
#endif // _msc_ver > 1000
class cpubfunction
{
public:
cpubfunction();
virtual ~cpubfunction();
private:
static bool polytogecurve(const acdbpolyline *&ppline,acgecurve2d *&pgecurve);
};
#endif // !defined(afx_pubfunction_h__504854c2_fd78_408c_ab44_c7d007fcc09e__included_)
为什么会出现这句?overloaded member function 'bool (const class acdbpolyline *& ,class acgecurve2d *& )' not found in 'cpubfunction'
已经解决
类cpubfunction 头文件中未包含acdbpolyline,acgecurve2d头文件