This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Can't build shared or dynamic libraries on Mac OS X
- From: "Johnsy George" <johnsy at spsoftindia dot com>
- To: <lrtaylor at micron dot com>, <tron dot thomas at verizon dot net>, <gcc-help at gcc dot gnu dot org>
- Date: Wed, 12 Nov 2003 10:45:38 +0530
- Subject: 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'