• 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: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume


  • Subject: Re: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume
  • From: Eric Albert <email@hidden>
  • Date: Mon, 21 Nov 2005 09:58:03 -0800

On Nov 21, 2005, at 9:49 AM, Dave McCaldon wrote:

Since upgrading to Xcode 2.2, I now get the following error when building a shared library project:

/usr/bin/ld: Undefined symbols:
__Unwind_Resume
collect2: ld returned 1 exit status

I've seen references suggesting to remove /usr/local/lib/libgcc.dylib, but I don't have that.

This is usually the result of having C++ code in your project but using gcc (not g++) as the linker.  In Xcode, which ensures that g++ is used to link if it knows you have any C++ files, this typically can only arise when you use C++ in a static library that you're linking in, but all of the source files in your project are C files.

The simplest solution is to either change the type of a trivial file in your project to 'sourcecode.cpp.cpp' or to add a custom variable of LD to your target settings with a value of 'g++'.  Either one should work.

Hope this helps,
Eric

 _______________________________________________
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: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume
      • From: Dave McCaldon <email@hidden>
References: 
 >Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume (From: Dave McCaldon <email@hidden>)

  • Prev by Date: Re: Build condiguration for aggregate targets
  • Next by Date: Re: possibly OT: threadsafe libc
  • Previous by thread: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume
  • Next by thread: Re: Xcode 2.2: /usr/bin/ld: Undefined symbols: __Unwind_Resume
  • Index(es):
    • Date
    • Thread