head.h , a.c , b.c 3 파일을 만들었고 a.c 와 b.c에서 head.h를 include합니다.
그런데 이상한것은.. head.h에서 int aaa ; 하면 에러가 안나고 int aaa=123하면 에러가 납니다.
왜 그럴까요......... :oops: :oops: :oops:
head.h ------------------------
#ifndef AAA
#define AAA
int aaa;
//int aaa=123 ; // error!!
#endif
-------------------------------
a.c ----------------------------
#include "head.h"
void fff1()
{
printf("%d\n", aaa);
}
--------------------------------
b.c ----------------------------
#include "head.h"
void fff2()