• 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
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]

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


  • Subject: Compile Error: undeclared (first use in this function) --> While Init'ing an Object
  • From: Chris Tracewell <email@hidden>
  • Date: Tue, 22 Jun 2010 14:03:34 -0700

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];

In the framework the header file is set to public and I can see it in the build and the linking project colors the code to show it recognizes the class. The framework itself uses this class in several places and it does not throw any compile errors. I have cleaned and built both the framework and linking project a gizillion times hoping to jiggle something - but no luck.

Any suggestions?

- Chris
XCode 3.2.2 :: GC :: OS X 10.6_______________________________________________

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: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Problem with stopModalWithCode on a different thread
  • Next by Date: Re: Problem with stopModalWithCode on a different thread
  • Previous by thread: [ANN] Cocoa Talk Episode 2 -UIGestureRecognizers
  • Next by thread: Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object
  • Index(es):
    • Date
    • Thread