• 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
Re: libgcc_s.dylib dependency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libgcc_s.dylib dependency


  • Subject: Re: libgcc_s.dylib dependency
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 22 Sep 2005 21:26:17 -0600


On Sep 22, 2005, at 7:07 PM, E. Wing wrote:

So we removed the C++ code from our code base, and the libstdc++
dependency disappeared, but I still see libgcc_s.1.dylib.
[...]
So in addition to knowing what this library does,

libgcc_s is the shared version of libgcc. libgcc is linked into every non-static binary built by GCC, and includes various internal functions. In GCC 4.0, G++ always links against libgcc_s. As I understand things, the C++ throw/catch exception handling mechanism is implemented in libgcc, and linking to the shared version allows exceptions to be thrown & caught between different shared objects.


I would also like to
know if there is a way to remove the dependency using the the newer
versions of Xcode and gcc 4.0 (static linking?).

In the build log, check to see how Xcode is launching GCC to link the binary. If it's using G++ and not GCC to link the binary, or if the "- shared-libgcc" option is being used, then the binary will be linked against libgcc_s.


Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: libgcc_s.dylib dependency
      • From: "E. Wing" <email@hidden>
References: 
 >libgcc_s.dylib dependency (From: "E. Wing" <email@hidden>)

  • Prev by Date: Re: Is there an XCode Apple Event for New Project...?
  • Next by Date: Re: NSObjCRuntime.h won't compile? Or .mm files?
  • Previous by thread: libgcc_s.dylib dependency
  • Next by thread: Re: libgcc_s.dylib dependency
  • Index(es):
    • Date
    • Thread