• Static Library
    • ar
    • ranlib
  • Shared Library
  • Shared libraries may only be built from position-independent code(PIC)
  • the PIC one lives in the ‘.libs’ subdirectory and the static one lives in the current directory
gcc -o test test.c `pkg-config --libs --cflags glib-2.0`
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License