时间:2023-07-27 | 栏目:嵌入式技术 | 点击:次
新建 mylib.c 文件:
#include< stdio.h >
void mylib(void);
void mylib(void)
{
printf("This is mylibn");
}
在 Ubuntu 编译

编写测试代码 test.c
#include < stdio.h >
void mylib(void);
int main(void)
{
mylib();
return 0;
}
编译测试文件 test.c

运行测试 a.out
