程序代码如下: /* main.c */ #include "test1.h" #include "test2.h" #include
int main() { test1_func("hello test1!"); test2_func("hello test2!"); return 0; } /* test1.c */ #include "test1.h" #include
void test1_func(char *str) { printf("This is test1 : %s ",str); } /* test1.h */ #ifndef _TEST_1_H #define _TEST_1_H void test1_func(char *str); #endif /*test2.c */ #include "test2.h" #include
void test2_func(char *str) { printf("This is test2 : %s",str); } /* test2.h */ #ifndef _TEST_2_H #define _TEST_2_H void TEST2_func(char *str); #endif 请同学们自行编写makefile文件。