Creating an Archive Library - 1 Write new helloworld() function: > cat > helloworld.c #define _POSIX_SOURCE #include <stdio.h> helloworld() { printf("hello world\n"); } > c89 -c helloworld.c Create the archive library: > ar -rv libhw.a helloworld.o
> cat > helloworld.c #define _POSIX_SOURCE #include <stdio.h> helloworld() { printf("hello world\n"); } > c89 -c helloworld.c
> ar -rv libhw.a helloworld.o