Newbie Q: SenTestCase linking problem
Newbie Q: SenTestCase linking problem
- Subject: Newbie Q: SenTestCase linking problem
- From: Tom Davies <email@hidden>
- Date: Wed, 14 Nov 2007 23:05:40 +1100
Hi,
I'm writing a Cocoa dynamic library, and have followed the
instructions in .../Conceptual/UnitTesting/UnitTesting.pdf.
I successfully ran an empty test (which just asserted false) -- that
failed as expected.
When I write a test case which refers to a class in my library I get
the following errors:
Building target “EddyTest” of project “EddyLib” with configuration
“Debug” — (1 error)
mkdir /Users/tomd/dev/other/EddyLib/build/Debug/EddyTest.octest/
Contents/MacOS
cd /Users/tomd/dev/other/EddyLib
/Developer/usr/bin/gcc-4.0 -o /Users/tomd/dev/other/EddyLib/build/
Debug/EddyTest.octest/Contents/MacOS/EddyTest -L/Users/tomd/dev/other/
EddyLib/build/Debug -F/Users/tomd/dev/other/EddyLib/build/Debug -F/
Developer/Library/Frameworks -filelist /Users/tomd/dev/other/EddyLib/
build/EddyLib.build/Debug/EddyTest.build/Objects-normal/i386/
EddyTest.LinkFileList -arch i386 -bundle -mmacosx-version-min=10.5 -
framework Cocoa -framework SenTestingKit -isysroot /Developer/SDKs/
MacOSX10.5.sdk
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?
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