make求救
下面是main.c文件
#include <stdio.h>
extern void OnRect();
extern void OnDraw();
void main()
{
OnDraw();
OnRect();
printf("over\n");
}
下面是func.c文件
#include <stdio.h>
void OnDraw()
{
printf("this is the func OnDraw()\n");
}
void OnRect()
{
printf("this is the func OnRect()\n");
}
以上两个文件组成的工程在VC运行正常!!
下面是makefile文件
myout:main.o func.o
cc main.o func.o -o myout
main.o:main.c
cc -c main.c
func.o:func.c
cc -c func.c
/////////////////////////////////////////
然后,我在UNIX中进入以上文件所在的文件夹
敲入make回车,不行