Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Link error




On Mar 19, 2006, at 07:06 , Norio Ota wrote:

Is there anyone who knows the link error below?

ld: Undefined symbols:
__ZN9__gnu_cxx12__atomic_addEPVii
[snip]

I assume you are asking what those meaningless character strings are all about.

These are "mangled" names from the C++ compiler. They include not only the symbol name, but the "signature" (argument and return value types) as well.

To find out what they really are, use "c++filt", a command-line tool (there's a man page to tell you more).

A caveat: for the above symbol, you can use

  $ c++filt _ZN9__gnu_cxx12__atomic_addEPVii

with one leading "_" stripped, or

  $ c++filt
  __ZN9__gnu_cxx12__atomic_addEPVii
  ....

without the leading underscore stripped. Don't ask me; it's not my design :-}.

Cheers,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income
--------
When LuteFisk is outlawed,
Only outlaws will have LuteFisk
--------



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Link error (From: Norio Ota <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.