• 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
Why does linker give "ld: Undefined symbols:" error for symbols that appear to compile fine ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does linker give "ld: Undefined symbols:" error for symbols that appear to compile fine ?


  • Subject: Why does linker give "ld: Undefined symbols:" error for symbols that appear to compile fine ?
  • From: Daniel Stenning <email@hidden>
  • Date: Thu, 13 Dec 2007 13:02:15 +0000
  • Thread-topic: Why does linker give "ld: Undefined symbols:" error for symbols that appear to compile fine ?

I have two hpp and cpp files written by myself, that hold several class
definitions and their implementations.

 These classes get referenced in other source in my  Xcode project ( a dylib
) compiles fine without errors - , but at the linking stage spits out an
"ld: Undefined symbols: __ZNmyclassname "  ( where myclassname  is the name
of one of my classes in the aforementioned hpp and cpp files.

Where should I look to sort this out ? I cant see anything in the target
settings that indicates the cause. Naturally all headers and cpp are
available to the compiler otherwise it would spit out compiler errors but it
doesn't.

Im flummoxed!!!

Cheers,
Dan




 _______________________________________________
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: Why does linker give "ld: Undefined symbols:" error for symbols that appear to compile fine ?
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: 64 bit
  • Next by Date: Re: 64 bit
  • Previous by thread: re:Problem with CFBundleGetFunctionPointerForName and 10.5 SDK
  • Next by thread: Re: Why does linker give "ld: Undefined symbols:" error for symbols that appear to compile fine ?
  • Index(es):
    • Date
    • Thread