Linker can't find NSApplication?
Linker can't find NSApplication?
- Subject: Linker can't find NSApplication?
- From: Thomas Harrington <email@hidden>
- Date: Thu, 22 Aug 2002 11:11:37 -0600
I'm trying to run a sheet from a class, and I'm getting a strange linker
error:
Undefined symbols: _NSApp
The class #imports <AppKit/AppKit.h>, and Cocoa.framework is linked, so
what's the problem? I tried changing the NSApp reference to
[NSApplication sharedApplication], but that just changes the error to
read:
Undefined symbols: .objc_class_name_NSApplication
I thought it might have something to do with the #imported header files,
but <AppKit/AppKit.h> is the first one there, followed only by some
project-specific headers. I don't see anything these that would cause
NSApplication's definition to disappear.
I've got another class in the same project that references NSApp
successfully, and I can't find any meaningful differences in the #import
chain. Where's NSApp going?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.