Thread: Creating shared objects (dylibs)
09-30-2006, 04: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, 04:13 PM #2xwaspGuest
I should add that I don't have a 10.4 machine to experiment on.
10-01-2006, 02: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, 12:31 PM #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, 02:55 PM
By zhade in forum OS X - Operating SystemReplies: 4Last Post: 03-09-2011, 06:01 PM
By Buddha_luver in forum Music, Audio, and PodcastingReplies: 0Last Post: 06-16-2010, 10:57 PM
By ADB3411 in forum Switcher HangoutReplies: 7Last Post: 03-26-2008, 10:13 AM
By Bary79 in forum OS X - Operating SystemReplies: 7Last Post: 09-02-2007, 06:46 PM