尝试多文件编译,自己定义了一个头文件和2个源文件,放在一起整体编译链接时正常。但想单独对自己定义的头文件进行编译时(ctrl+ F7),提示没有相关的编译工具可用。什么情况?
头文件代码如下:
#ifndef COORDIN_H_
#define COORDIN_H_
struct polar
{
double distance;
double angle;
};
struct rect
{
double x;
double y;
};
// 函数原型
polar rect_to_polar (rect xypos);
void show_polar (polar dapos);
#endif