gcc-help Digest 16 Jul 2007 16:08:08 -0000 Issue 2447

Saurabh Verma saurabh.verma@codito.com
Tue Jul 17 04:39:00 GMT 2007


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





More information about the Gcc-help mailing list