This is the mail archive of the 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]

OSX shared libs: any ideas?


I know that Apple's version of gcc is not official and all that but this
seems a reasonable place to ask, as IIRC some Apple people working on the
devel tools hang out here. This is MacOS X with the May 2001 Apple devel

Any thoughts on why this is happening:

(sakura ~/OpenCL-0.7.5)$ c++ -shared -fPIC -lz <a list of object files> -o
/usr/bin/ld: Undefined symbols:

(sakura ~/OpenCL-0.7.5)$ c++ -v
Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs
Apple Computer, Inc. version gcc-926, based on gcc version 2.95.2 19991024 (release)

1) Linking these objects into an ar lib and linking my app will work fine
2) This hasn't happened to me before on any system, so I don't think it's
pilot error re using PIC or whatever

3) Unrelated: how the #@%@%^ do I set the soname with Apple's ld? Yes, this
has nothing at all to do with gcc, but while I'm here, why not?



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