PDA

View Full Version : C building my own library



ibrahimtawbe
February 12th, 2012, 10:14 AM
i'm using


libunp.a : unp.h
gcc -Wall -Wstrict-prototypes -ansi -pedantic -g -c *.c -D_BSD_SOURCE;
ar -cvq libunp.a *.o

should I clean .o files in the current directory after adding them to .a library

Arndt
February 12th, 2012, 01:01 PM
i'm using


libunp.a : unp.h
gcc -Wall -Wstrict-prototypes -ansi -pedantic -g -c *.c -D_BSD_SOURCE;
ar -cvq libunp.a *.o

should I clean .o files in the current directory after adding them to .a library

I can't come up with a situation where it matters.