以下代码只是我的头文件的一部分
double calculateDistance(const wp, &CWaypoint);
void print(int format);
bool less(wp_right, const &CWaypoint);
CWaypoint add(wp_right, const &CWaypoint);
错误是:
g++ -O0 -g3 -Wall -c -fmessage-length=0 -o src\Waypoint.o ..\src\Waypoint.cpp
In file included from ..\src\Waypoint.cpp:15:0:
..\src\/Waypoint.h:45:33: error: 'wp' does not name a type
..\src\/Waypoint.h:45:33: error: ISO C++ forbids declaration of 'parameter' with no type
..\src\/Waypoint.h:47:12: error: 'wp_right' has not been declared
..\src\/Waypoint.h:48:16: error: 'wp_right' has not been declared
PS:我是 C++ 初学者