• 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: Illegal declaration - but why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Illegal declaration - but why?


  • Subject: Re: Illegal declaration - but why?
  • From: alex <email@hidden>
  • Date: Wed, 3 Jan 2007 20:11:24 -0800

I would try precompiling the source file to see if all the types that 'bool SetConfigs(char *errString)' uses are defined.

alex


At 8:08 PM -0800 1/3/07, Hugh Brown wrote:
>I'm new to xcode, and have just ben handed a project to port to the mac.  It's a plain vanilla C program, but when I try to compile it I get a string of errors complaining about the headers.  A typical error message is:
>	error: parse error before "SetConfigs"
>	data definition has no type or storage class
>
>The declaration of SetConfigs looks like
>	bool SetConfigs(char *errString);
>
>which looks pretty legit to me.  I get this pair of error messages for every function declaration in the project.  Obviously, I'm doing something fundamentally wrong, but I can't see what.  Isthere something particular to xcode that prevents this from compiling?
>
>Is there an on-line reference somewhere that will answer basic questions like this so I don't pester the list with them?
>
>Thanks!
>Hugh
>
>_______________________________________________
>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

 _______________________________________________
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: Illegal declaration - but why?
      • From: alex <email@hidden>
References: 
 >Illegal declaration - but why? (From: Hugh Brown <email@hidden>)

  • Prev by Date: Illegal declaration - but why?
  • Next by Date: Re: Illegal declaration - but why?
  • Previous by thread: Illegal declaration - but why?
  • Next by thread: Re: Illegal declaration - but why?
  • Index(es):
    • Date
    • Thread