• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Linking .a vs. .dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking .a vs. .dylib


  • Subject: Linking .a vs. .dylib
  • From: Conrad G T Yoder <email@hidden>
  • Date: Thu, 16 Aug 2007 16:09:15 -0400
  • Thread-topic: Linking .a vs. .dylib

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: IOKit KEXT Questions
  • Next by Date: Re: Disk Arbitration: Preventing the disk insertion (unrecognized volume) dialog
  • Previous by thread: Changing source port in reflector module
  • Next by thread: "Bad CPU type" when building on G4
  • Index(es):
    • Date
    • Thread