building C apps 02. hello multifile
cretate a header file for the library functions
add : #include “hello-lib-1.h” to the main program
(not #include
zie code
gcc -c hello2.c
gcc -c hello-lib-1.c
gcc hello2.o hello-lib-1.o -o hello2.bin
cretate a header file for the library functions
add : #include “hello-lib-1.h” to the main program
(not #include
zie code
gcc -c hello2.c
gcc -c hello-lib-1.c
gcc hello2.o hello-lib-1.o -o hello2.bin