|
非常简单的练习程序,
*
* helper.h
*/
void msg(void)
头文件helper.h
*
* helper.c
*/
#include <stdio.h>
void msg(void)
{
printf("This message sent from xu.\n");
}
*
* howdy.c
*/
#include <stdio.h>
#include "helper.h"
int main(void)
{
printf("Hello,Linux programming world!\n");
msg();
return 0;
}
以上三个文件放在一起,然后gcc howdy.c helper.c -o howdy
老提示:
howdy.c: In function `msg':
howdy.c:8: error: syntax error before '{' token
这是怎么了呢?谢谢! |
|