• 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: gcc vs. stdc++ dylib usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc vs. stdc++ dylib usage


  • Subject: Re: gcc vs. stdc++ dylib usage
  • From: Chris Espinosa <email@hidden>
  • Date: Mon, 17 Apr 2006 00:00:33 -0700


On Apr 16, 2006, at 10:06 PM, smack supersonic wrote:

I have noticed that when building with XCode and/or directly via command line the following two dylib's are linked with my binary:


/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)

/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)


Although everything works just fine, i am little bit worried that two almost identical dll's are used!?


So my question is:


Is there a way to force either of this dll's to be mutualy exclusive?


Shouldnt this cause problems if in more complex example (host with plug-in components) is dynamically loading plug-in modules that may use either of these libraries?


Have you looked at the two libraries you name?  They are very, very far from "almost identical dll's".  In fact, they don't export a single symbol in common.

libgcc_s.1.dylib is the gcc C support library, with C intrinsics like fixed and floating point arithmetic, plus stack frame management.

libstdc++.6.dylib is the C++ Standard Library, with iostream, char_traits, locale, collate, dynamic_cast, etc.  It's not even used for straight C programs, and is absolutely required for C++.

So to your point: They are mutually exclusive.  They are not remotely identical.  It will not cause problems to use them both.  Plugin modules that use either are OK in an app that uses both.

Chris
 _______________________________________________
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: gcc vs. stdc++ dylib usage
      • From: "smack supersonic" <email@hidden>
References: 
 >gcc vs. stdc++ dylib usage (From: "smack supersonic" <email@hidden>)

  • Prev by Date: Re: gcc vs. stdc++ dylib usage
  • Next by Date: NSComboBox ToolTip for each item
  • Previous by thread: Re: gcc vs. stdc++ dylib usage
  • Next by thread: Re: gcc vs. stdc++ dylib usage
  • Index(es):
    • Date
    • Thread