how to compile c code to a .so code example Example: how to compile c code to a .so gcc -shared -o libhello.so -fPIC hello.c