Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Creating shared objects (dylibs)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xwasp" data-source="post: 261951"><p>On OS X 10.3.9, I can create shared objects using the</p><p>following commands:</p><p></p><p>[code]</p><p>cc -fPIC -c -o file1.o file1.c</p><p>cc -fPIC -c -o file2.o file2.c</p><p>cc -fPIC -c -o file3.o file3.c</p><p>libtool -dynamic -o libfile.dylib file1.o file2.o file3.o -lc</p><p>[/code]</p><p></p><p>However, on any version of OS X 10.4, this fails with a linker</p><p>error:</p><p></p><p>[code]</p><p>ld: for architecture ppc</p><p>ld: Undefined symbols:</p><p>_printf$LDBLStub</p><p>libtool: internal link edit command failed</p><p>[/code]</p><p></p><p>Any ideas?</p></blockquote><p></p>
[QUOTE="xwasp, post: 261951"] On OS X 10.3.9, I can create shared objects using the following commands: [code] 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 [/code] However, on any version of OS X 10.4, this fails with a linker error: [code] ld: for architecture ppc ld: Undefined symbols: _printf$LDBLStub libtool: internal link edit command failed [/code] Any ideas? [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Creating shared objects (dylibs)
Top