Ld -U (Undefined Symbols) argument is ignored?
Ld -U (Undefined Symbols) argument is ignored?
- Subject: Ld -U (Undefined Symbols) argument is ignored?
- From: Jerry Krinock <email@hidden>
- Date: Sat, 19 Apr 2008 18:47:46 -0700
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