• 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: missing declaration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: missing declaration


  • Subject: Re: missing declaration
  • From: Dave Zarzycki <email@hidden>
  • Date: Wed, 06 Jun 2012 09:32:00 -0700


On Jun 6, 2012, at 9:26 AM, Charlie Dickman <3tothe4th@comcast.net> wrote:

I am trying to use the ObjectiveC runtime function class_getName which, according to the developer documentation,

 "The functions are implemented in the shared library found at /usr/lib/libobjc.A.dylib. This shared library provides support for the dynamic properties of the Objective-C language, and as such is linked to by all Objective-C applications."

Yet I get the warning that my use of class_getName is an "implicit definition" of it.

#include <objc/runtime.h>

(The above header may have been implicitly included in the past by other headers.)



I have used this and other runtime functions in other projects without receiving such a warning.

Can anyone explain what I need to do to avoid this warning? (I have a thing about my projects building with no warnings or errors).

Charlie Dickman
email@hidden


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: missing declaration
      • From: Charlie Dickman <email@hidden>
References: 
 >missing declaration (From: Charlie Dickman <email@hidden>)

  • Prev by Date: missing declaration
  • Next by Date: Re: missing declaration
  • Previous by thread: missing declaration
  • Next by thread: Re: missing declaration
  • Index(es):
    • Date
    • Thread