//test_so.h
#include <stdio.h>
void test_a();
void test_b();
//test_a.c
#include "so_test.h"
void test_a()
{
printf("this is in test_a...\n");
}
//test_b.c
#include "so_test.h"
void test_b()
{
printf("this is in test_b...\n");
}
//test.c
#include "so_test.h"
int main()
{
test_a();
test_b();
return 0;
}
原文:http://blog.csdn.net/waldmer/article/details/43983861