Can't build shared or dynamic libraries on Mac OS X

Johnsy George johnsy@spsoftindia.com
Wed Nov 12 04:45:00 GMT 2003


Try gcc -dynamic as the -shared option is not available for MAC OS X.
Make sure that the filename extensoin is .dylib instead of .so

Johnsy George
S P Software Technologies (India) Pvt. Ltd. 
Pune, INDIA.
www.spsoftindia.com 
--------------------------


---------------

Try using -G.

Cheers,
Lyle

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On 

I am unable to compile either a shared object library or a dynamic 
linked shared library

If I use:
gcc -shared -o Shared Shared.c

I get:
unrecognized option `-shared'



More information about the Gcc-help mailing list