Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shared Objects and dyLibs



Hello,
I am currently working on an OpenAL port to Darwin/MacOS X and I am having some troubles when building a dynamic library.
I used the -dynamiclib option with cc to build the dynamic library, and I got the following error :

ld: common symbols not allowed with MH_DYLIB output format

It seems that global data symbols are not allowed within the dylib. There are a few of them in OpenAL, and they are shared between the different object files.

Is the MH_DYLIB format the closest Darwin equivalent to Linux shared objects (.so) files? And what is the difference between dyLibs and bundles?
Darwin has a quite different dynamic linking system than other unixes... Is there any good documentation or FAQ about dynamic linking on Darwin?

Thanks!

Florent




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.