• 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: error : forward declaration of 'struct MYSprite'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error : forward declaration of 'struct MYSprite'


  • Subject: Re: error : forward declaration of 'struct MYSprite'
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 28 Jun 2006 00:56:59 -0700

On Jun 27, 2006, at 10:56 PM, Abin Thomas wrote:

1) error: invalid use of undefined type 'struct MYSprite'
2) error: forward declaration of 'struct MYSprite'

I am getting the above two errors for all the lines which use the
mpSprite in the second file.

They're actually a single error, the second is providing contextual information to better interpret the first. It means that you cannot invoke a method of MYSprite without actually having the full declaration of MYSprite (in MYSprite.h) visible at the time of the invocation. The only thing the compiler is able to see when compiling MYElement.h is the forward declaration.


  -- Chris


_______________________________________________ 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
References: 
 >error : forward declaration of 'struct MYSprite' (From: "Abin Thomas" <email@hidden>)

  • Prev by Date: error : forward declaration of 'struct MYSprite'
  • Next by Date: Re: error : forward declaration of 'struct MYSprite'
  • Previous by thread: error : forward declaration of 'struct MYSprite'
  • Next by thread: Re: error : forward declaration of 'struct MYSprite'
  • Index(es):
    • Date
    • Thread