int main()
{
printf( "test\n" );
return 0;
}
이라는 #include <stdio.h>가 빠진 test.c라는 파일을 만든 후
# gcc -o test test.c
라고 컴파일 하면 컴파일도 잘되고 실행도 잘 됩니다.
int main()
{
func();
return 0;
}
라는 test1.c라는 파일과
#include <stdio.h>
void func()
{
printf( "func\n" );
}
라는 test2.c라는 파일을 만든 후
# gcc -c test1.c