This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]