• 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: Ld -U (Undefined Symbols) argument is ignored?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ld -U (Undefined Symbols) argument is ignored?


  • Subject: Re: Ld -U (Undefined Symbols) argument is ignored?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sun, 20 Apr 2008 11:55:36 +0200

The -U has not the same meaning when passed to gcc than when passed to ld. It should probably be -Wl,-U instead

But you may also use "-undefined dynamic_lookup" that should be accepted by gcc directly.


Le 20 avr. 08 à 03:47, Jerry Krinock a écrit :

I'm building a Bundle project with Xcode 3.0. If you look near the end of the arguments to Ld in the Build Transcript below, you'll see that I've used the -U option to name three symbols that are undefined at this time and should be linked dynamically at runtime. (They exist in the main executable, which does not yet exist after a Clean, since this dependent Bundle is built first.) But Ld ignores my intentions and declares errors on these three undefined symbols anyhow. What's wrong?

Ld /private/tmp/BmTiger.build/Release/BmTiger.build/Objects-normal/ ppc/BmTiger normal ppc
cd /Users/jk/Documents/Programming/Projects/Bookdog/BmTiger
/Developer/usr/bin/gcc-4.0 -o /private/tmp/BmTiger.build/Release/ BmTiger.build/Objects-normal/ppc/BmTiger -L/Users/jk/Documents/ Programming/Builds/Release -F/Users/jk/Documents/Programming/Builds/ Release -F/Users/jk/Documents/Programming/Projects/Bookdog/ BmTiger/../../../Builds/Release -F/Users/jk/Documents/Programming/ Projects/Bookdog/BmTiger/../../../Builds/Debug -F/Users/jk/Documents/ Programming/Projects/Bookdog/BmTiger/../../../Builds/Debug -F/Users/ jk/Documents/Programming/Projects/Bookdog/BmTiger/../../../Builds/ Release -F/Users/jk/Documents/Programming/Projects/Bookdog/ BmTiger/../../../Builds/Debug -F/Users/jk/Documents/Programming/ Projects/Bookdog/BmTiger/../../../Builds/Release -F/Users/jk/ Documents/Programming/Projects/Bookdog/BmTiger/../../../Builds/ Release -filelist /private/tmp/BmTiger.build/Release/BmTiger.build/ Objects-normal/ppc/BmTiger.LinkFileList -framework Cocoa -framework SSAlert -framework SSApp -framework SSSQLiter -framework BmStuff - arch ppc -bundle -mmacosx-version-min=10.4 -Wl,-dead_strip - U .objc_class_name_NonhierarchicalStore -U .objc_class_name_Store - U .objc_class_name_Browfile -isysroot /Developer/SDKs/MacOSX10.4u.sdk


Undefined symbols:
 ".objc_class_name_NonhierarchicalStore", referenced from:
     .objc_class_name_DeliciousStore in DeliciousStore.o
 ".objc_class_name_Store", referenced from:
     .objc_class_name_ShiiraStore in ShiiraStore.o
     .objc_class_name_Firefox3Store in Firefox3Store.o
 ".objc_class_name_Browfile", referenced from:
     literal-pointer@__OBJC@__cls_refs@Browfile in DeliciousTalker.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Thank you,

Jerry
_______________________________________________
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


_______________________________________________ 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: Ld -U (Undefined Symbols) argument is ignored?
      • From: Jerry Krinock <email@hidden>
References: 
 >Ld -U (Undefined Symbols) argument is ignored? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Copying dependent frameworks
  • Next by Date: Re: Ld -U (Undefined Symbols) argument is ignored?
  • Previous by thread: Ld -U (Undefined Symbols) argument is ignored?
  • Next by thread: Re: Ld -U (Undefined Symbols) argument is ignored?
  • Index(es):
    • Date
    • Thread