考虑一下代码.
#ifndef FOO_H
#define FOO_H
//Code
#endif
代码可以是以下情况
// Case 1: 
#define foo 0
// Case 2:
void foo_method(){};
// Case 3:
int foo;
foo.h包含在许多C文件中.当我只编译案例1没有错误时,其他情况会抛出重复错误.
为什么foo.h在编译时没有连接到C文件除外?