关于 RTX51
dell9 2003-10-15 11:48:58 我用书上的例程
#include <rtx51tny.h>
int counter0;
int counter1;
void job0 (void) _task_ 0 {
os_create (1); /* mark task 1 as ready */
while (1) { /* loop forever */
counter0++; /* update the counter */
}
}
void job1 (void) _task_ 1 {
while (1) { /* loop forever */
counter1++; /* update the counter */
}
}
为什么在 Keil uVision 上不能编译通过?
是本身就不能在这里用吗?
提示说
'os_create' :missing function-prototype
'os_create': requires ANSI-style prototype
Target not created
我在option中选择了 tiny 和 full 都不行