编译原理——gcc学习中的一次错误
Q:以下例子能否编译成可执行程序?
test.h:
#ifndef __TEST_H__
#define __TEST_H__
int add(int a, int b)
{
return a + b;
}
int test01(int a, int b);
#endif
test.c:
#include "test.h"
int test01(int a, int b)
{
return add(a, b);
}
main.c:
#include "test.h"
int
原创
2022-01-11 22:12:54 ·
379 阅读 ·
0 评论