• 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
Link issue??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Link issue??


  • Subject: Link issue??
  • From: Michael de Haan <email@hidden>
  • Date: Sat, 25 Jul 2009 16:28:42 -0700

Hi all,
I **think** this is an Xcode issue, but not sure.

I am learning Core Data and in the process doing the tutorial provided by Apple.

In a nutshell, I am getting a ?link error? as follows.

In main:




#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>


NSManagedObjectModel *managedObjectModel();

int main (int argc, const char * argv[]) {
   .......more stuff here
}






NSManagedObjectModel *managedObjectModel() {


......definition here

}


Error as follows:

Undefined symbols:
  ".objc_class_name_NSManagedObjectModel", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSManagedObjectModel in CDCLI.o
  ".objc_class_name_NSAttributeDescription", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSAttributeDescription in CDCLI.o
  ".objc_class_name_NSEntityDescription", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSEntityDescription in CDCLI.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Now you will have to excuse me if this is not correct, but when I look at the "Link Binary with Libraries" in "Targets" all I see is the link to "Foundation.framework".   So, I think the issue is not importing and/or linking to CoreData. But if this is indeed the issue, how to fix it.
Any help would be appreciated.
Thanks in advance.


 _______________________________________________
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: Link issue??
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Copy File Phase - how to copy an archived file
  • Next by Date: Re: Link issue??
  • Previous by thread: Re: Copy File Phase - how to copy an archived file
  • Next by thread: Re: Link issue??
  • Index(es):
    • Date
    • Thread