问题:之前在主程序“main.c”中直接#include “test.c”,后建立了头文件“test.h”并在main.c和test.c分别包含。“test.h”在主程序中被直接调用,又通过test.c被主程序再次调用
解决:去掉main.c中#include “test.c”
ref:
https://blog.youkuaiyun.com/nightdrug/article/details/83317049
问题:之前在主程序“main.c”中直接#include “test.c”,后建立了头文件“test.h”并在main.c和test.c分别包含。“test.h”在主程序中被直接调用,又通过test.c被主程序再次调用
解决:去掉main.c中#include “test.c”
ref:
https://blog.youkuaiyun.com/nightdrug/article/details/83317049