site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Thread-index: AcfgQVGbj+NtZkw0EdySBgARJHiCXA== Thread-topic: Linking .a vs. .dylib User-agent: Microsoft-Entourage/11.3.6.070618 Running gcc 4.0.1 build 5341, ld cctools-590.42.1.obj-1 (Xcode 2.3) on i386 OS X 10.4.10. I am having an issue when I link with a static lib, arg lists of calls to functions in that static lib get "messed up" - the value of the first parameter ("this" pointer; it is a C++ lib) is gone and the first arg in the fn parameters gets assigned to "this", the value of the 2nd arg gets assigned to the first arg, etc. I don't have this problem with linking with the dynamic version of this lib - the "this" pointer has the correct value, along with the regular fn arguments. I don't have access to the source or am able to compile these libs; I am just able to link to them. Could this be something wrong with the static version of the compiled lib? Something I am missing in the options of ld or libtool when linking to the static lib? Thanks for any suggestions here. -Conrad -- Strength Through Faith Faith Through Unity _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Conrad G T Yoder