-, , #include. . (DLL .lib Windows,.a .so Linux). , #include, , .
, #include, , . Java Python, #includes . " ", , . #include in C : " , ". , #include <stdio.h> , - . , , , .
, . , ( ) (DLL .so), (.lib .a) . "" , .
, , , , , , .
. , , . . , , foo.c, foo.h. - , "extern". , foo.c
int some_global;
void some_function(int a, char b)
{
}
, , foo.h
extern int some_global;
void some_function(int, char);
#include "foo.h", some_global some_function. , " ", . , foo.h :
#ifndef FOO_H
#define FOO_H
extern int some_global;
void some_function(int, char);
#endif
, ( ).
, .h , ( ).
cc main.c 1.c 2.c 3.c ... [etc]
, 50 , , , , . Linux Makefile. Windows , . Google SO, ( ).
, , , , , ( ), , , , . , .