Skip to content

Latest commit

 

History

History
executable file
·
23 lines (16 loc) · 296 Bytes

File metadata and controls

executable file
·
23 lines (16 loc) · 296 Bytes

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