| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
In trying to port a large library to OS X, we would like to learn how to create a dynamically loadable library (a .dylib object) with gcc on darwin. The documentation on Apple's site all assumes we're using XCode, but we are using our own build system. Given a file foo.c, with several functions defined in it, how to create a foo.dylib file that can be used as argument to dlopen()? Thanks.
Something like gcc -dynamiclib -o foo.dylib foo.c -lbar should do the trick. See the manual for gcc and the man page for ld.
Bill Northcott _______________________________________________ scitech mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/scitech Do not post admin requests to the list. They will be ignored.
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.