< test.h >
const int a = 1;
< test1.c/cpp >
#include "test.h"
int main(){}
< test2.c/cpp >
#include "test.h"
gcc test.h test1.c test2.c는 안되고
g++ test.h test1.cpp test2.cpp는 됨
< test.h >
const int a = 1;
< test1.c/cpp >
#include "test.h"
int main(){}
< test2.c/cpp >
#include "test.h"
gcc test.h test1.c test2.c는 안되고
g++ test.h test1.cpp test2.cpp는 됨
왜안됨?