How to created and link shared library
gcc -shared -o libmyshared.so -fPIC mysharedlib.c
gcc process1.c -o process1 -L/myshare/Project/mycodes/ -lmyshared
gcc process2.c -o process2 -L/myshare/Project/mycodes/ -lmyshared
--
gcc process1.c -o process1 -L/myshare/Project/mycodes/ -lmyshared
gcc process2.c -o process2 -L/myshare/Project/mycodes/ -lmyshared
--
Comments
Post a Comment