![]() |
![]() ![]() ![]() ![]() ![]() |
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.cCreate the archive library: > ar -rv libhw.a helloworld.o