hi ankit, Try this $ gcc -g -O2 -Wall -fPIC -c logger.c $ gcc -g -O2 -Wall -fPIC -c func_lib.c $ gcc -shared -nostdlib logger.o func_lib.o -o libfuncs.so No need to give the -static anywhere. regards saurabh
hi ankit, Try this $ gcc -g -O2 -Wall -fPIC -c logger.c $ gcc -g -O2 -Wall -fPIC -c func_lib.c $ gcc -shared -nostdlib logger.o func_lib.o -o libfuncs.so No need to give the -static anywhere. regards saurabh