• 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
Fixing Link Errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fixing Link Errors


  • Subject: Fixing Link Errors
  • From: "Duane Murphy" <email@hidden>
  • Date: Thu, 13 Apr 2006 10:20:52 -0700

I am getting link errors using Xcode with the 3.3 compiler targeting the
10.2.8 SDK (although the SDK is not really relevant here).

I am compiling and linking a library, then using that library to compile
and link a program.

The link errors are similar template instantiations.

I have done some digging using nm.

The missing symbols all appear twice in the library. Once with a "U" and
once with an "S" including an address. However, when the program is
linked with the library, the symbols are not found.

As an experiment, I added one of the source files to the application and
it was able to locate that symbol.

It is also interesting to note that I had been using gcc 4 and didn't
have these link errors. So this seems something to do with gcc 3.3.

Why isn't the linker locating the symbols in the library? What do I need
to do to get the symbols to resolve.

Thank you for your help,

 ...Duane


 _______________________________________________
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

  • Prev by Date: Re: Help : Compiling for multiple architectures, is ppc970 valid ?
  • Next by Date: Re: Link errors
  • Previous by thread: Re: Help : Compiling for multiple architectures, is ppc970 valid ?
  • Next by thread: linking Fortran subroutines
  • Index(es):
    • Date
    • Thread