• 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: Compile Error: undeclared (first use in this function) --> While Init'ing an Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object


  • Subject: Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object
  • From: Chris Tracewell <email@hidden>
  • Date: Thu, 24 Jun 2010 14:52:27 -0700

On Jun 22, 2010, at 2:11 PM, Kyle Sluder wrote:

> On Tue, Jun 22, 2010 at 2:03 PM, Chris Tracewell <email@hidden> wrote:
>> I have my own custom framework. The framework builds fine but when I link to it in one of my projects one class is causing a compile error of...
>>
>> 'MyClass' undeclared (first use in this function)
>>
>> This occurs when I am trying to init MyClass inside a view controller's .m file in one of it's methods like so...
>>
>> MyClass *theClass = [MyClass new];
>
> Did you remember to #import the header file that declares MyClass's interface?
>
> --Kyle Sluder
>

Okay - almost have this solved. I found that the linking project is still including an older version of the framework even though I have thrown out the build directories, cleaned and rebuilt for both it and the framework several times and have re-linked the new framework so many times it is silly.

Obviously, I have a setting wrong somewhere as it is seeing an older version of the framework than I am linking to. Any thoughts where I should look?

Thanks


--Chris


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object
      • From: Graham Cox <email@hidden>
References: 
 >Compile Error: undeclared (first use in this function) --> While Init'ing an Object (From: Chris Tracewell <email@hidden>)
 >Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Not sure what's wrong with this code to using NSUserDefaults...
  • Next by Date: Re: Best way to determine if a directory is a package
  • Previous by thread: Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object
  • Next by thread: Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object
  • Index(es):
    • Date
    • Thread