Mailing Lists: Apple Mailing Lists

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

Re: ld and dyld_stub_binding_helper



On Thursday, November 6, 2003, at 12:10 PM, Patrick Chkoreff wrote:

ld -bundle ../obj/fexl_test.o libnode.dylib -o fexl_test.so -lc

The resulting error message is:

ld: Undefined symbols:
dyld_stub_binding_helper

What incantation can I include on the 'ld' command line to avoid this error?



Ah, found it. This works:

ld -bundle ../obj/fexl_test.o libnode.dylib /usr/lib/bundle1.o -o fexl_test.so -lc


As usual, Google is my friend:

http://developer.apple.com/documentation/DeveloperTools/Conceptual/ MachORuntime/5rt_api_reference/chapter_5_section_50.html


Excerpt:

dyld_stub_binding_helper is located in the runtime startup files that are statically linked into the image. For executables, the file is /lib/crt1.o . For bundles, it is /lib/bundle1.o , and for shared libraries, it is /lib/dylib1.o .


-- Patrick
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.



References: 
 >ld and dyld_stub_binding_helper (was: Linking glib-based library from Cocoa app) (From: Patrick Chkoreff <email@hidden>)



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.