Skip to content
sharyari edited this page Nov 9, 2012 · 1 revision

Creating a so-file in linux with gcc

gcc -Wall -fPIC -c *.c

gcc -shared -Wl,-soname,libctest.so.1 -o libctest.so.1.0 *.o