/own-static-c-library

Latihan membuat library sendiri

Primary LanguageCGNU General Public License v3.0GPL-3.0

Usage

ar rcs libmy.a mylib.o

to check:

ar t libmy.a

for use:

gcc main.c -L. -lmy -o main

and for simple:

cd lib && gcc -c stack.c std.c && ar rcs libdeo.a stack.o std.o && mv libdeo.a .. && cd ..  && gcc main.c -L. -ldeo -o main && ./main