Thread: Creating shared objects (dylibs)
09-30-2006, 03:10 PM #1xwaspGuestCreating shared objects (dylibs)
On OS X 10.3.9, I can create shared objects using the
cc -fPIC -c -o file1.o file1.c cc -fPIC -c -o file2.o file2.c cc -fPIC -c -o file3.o file3.c libtool -dynamic -o libfile.dylib file1.o file2.o file3.o -lc
ld: for architecture ppc ld: Undefined symbols: _printf$LDBLStub libtool: internal link edit command failed
09-30-2006, 03:13 PM #2xwaspGuest
I should add that I don't have a 10.4 machine to experiment on.
10-01-2006, 01:48 AM #3
Originally Posted by xwasp
- Member Since
- Jun 25, 2005
- On the road
- 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
libtool -dynamic -lSystemStubs -o libfile.dylib file1.o file2.o file3.o -lc
I found that answer from Apple's macosx-dev list dated October 28, 2005.
10-01-2006, 11:31 AM #4xwaspGuest
Thanks. I'll give it to my friend to try tonight.
A generic google search was most unhelpful. I'll check the
Apple lists in future.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By capturenow in forum iOS and AppsReplies: 3Last Post: 09-23-2011, 01:55 PM
By zhade in forum OS X - Operating SystemReplies: 4Last Post: 03-09-2011, 05:01 PM
By Buddha_luver in forum Music, Audio, and PodcastingReplies: 0Last Post: 06-16-2010, 09:57 PM
By ADB3411 in forum Switcher HangoutReplies: 7Last Post: 03-26-2008, 09:13 AM
By Bary79 in forum OS X - Operating SystemReplies: 7Last Post: 09-02-2007, 05:46 PM