• 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: Newbie Q: SenTestCase linking problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Q: SenTestCase linking problem


  • Subject: Re: Newbie Q: SenTestCase linking problem
  • From: Tom Davies <email@hidden>
  • Date: Thu, 15 Nov 2007 09:16:31 +1100


On 15/11/2007, at 4:05 AM, Chris Hanson wrote:

On Nov 14, 2007, at 4:05 AM, Tom Davies wrote:

Undefined symbols:
".objc_class_name_Eddy", referenced from:
    literal-pointer@__OBJC@__cls_refs@Eddy in TestEddy.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
		  ".objc_class_name_Eddy", referenced from:
		      literal-pointer@__OBJC@__cls_refs@Eddy in TestEddy.o
		ld: symbol(s) not found
		collect2: ld returned 1 exit status
Build failed (1 error)

What have I done wrong?

You need to link your test bundle against your library. Target dependencies are orthogonal to linking.

Thanks Chris! I had assumed the former implied the latter -- but you might have dependencies with only runtime interactions, I suppose.


I also had a problem with GC -- I had set both targets to GC required, but then got:

15/11/07 8:32:11 AM otest[7849] Error loading /Users/tomd/dev/other/ EddyLib/build/Debug/EddyTest.octest/Contents/MacOS/EddyTest: dlopen(/ Users/tomd/dev/other/EddyLib/build/Debug/EddyTest.octest/Contents/ MacOS/EddyTest, 265): no suitable image found. Did find:
/Users/tomd/dev/other/EddyLib/build/Debug/EddyTest.octest/Contents/ MacOS/EddyTest: GC capability mismatch


in the console. Changing to 'supported' fixed the problem, but I'd be interested to know what the problem was? Is OCTest incompatible with GC?

Thanks,
  Tom

_______________________________________________
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: Newbie Q: SenTestCase linking problem
      • From: Chris Hanson <email@hidden>
References: 
 >Newbie Q: SenTestCase linking problem (From: Tom Davies <email@hidden>)
 >Re: Newbie Q: SenTestCase linking problem (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: Making larger Icons for Leopard
  • Next by Date: Re: Making larger Icons for Leopard
  • Previous by thread: Re: Newbie Q: SenTestCase linking problem
  • Next by thread: Re: Newbie Q: SenTestCase linking problem
  • Index(es):
    • Date
    • Thread