Hi, You might try using -G instead of -shared to create shared libraries. Also try not using -soname. It's not necessary for creating shared libraries. Thanks, Lyle -----Original Message----- From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of Andrea Riela Sent: Tuesday, June 15, 2004 8:54 AM To: llewelly@xxxxxxxxxxxx; gcc-help@xxxxxxxxxxx Subject: Re: about hpoj-0.91 and macosx 10.3.4 - gcc version 3.3 20030304 (Apple Computer, Inc. build 1495) llewelly@xxxxxxxxxxxx wrote: > I seem to recall apple gcc 3.3.x (but not FSF gcc 3.3.x) supports > shared libraries on Mac OS X. I think FSF gcc 3.4 does as well. > > What is the output of 'gcc -v'? Can you install and try a newer gcc > from apple? Well, I've installed gcc 3.4.0 on my system 10.3.4, but I've always the same problem: cc: unrecognized option `-shared' ld: unknown flag: -soname make[1]: *** [libhpojip.so.0.1] Error 1 make: *** [just_compile] Error 2 this is my gcc: iBook:~/Desktop/hpoj-0.91 user$ gcc -v Reading specs from /usr/local/gcc/lib/gcc/powerpc-apple-darwin7.4.0/3.4.0/specs Configured with: ../gcc-3.4.0/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-shared --disable-checking --enable-languages=c,c++ --disable-static Thread model: posix gcc version 3.4.0 iBook:~/Desktop/hpoj-0.91 user$ cc -v Reading specs from /usr/local/gcc/lib/gcc/powerpc-apple-darwin7.4.0/3.4.0/specs Configured with: ../gcc-3.4.0/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-shared --disable-checking --enable-languages=c,c++ --disable-static Thread model: posix gcc version 3.4.0 could you help me? Thanks for your support Regards Andrea