• 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: parse error before `;' token ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: parse error before `;' token ???


  • Subject: Re: error: parse error before `;' token ???
  • From: Jens Miltner <email@hidden>
  • Date: Tue, 20 Jan 2004 17:27:15 +0100

Am 20.01.2004 um 17:22 schrieb Dave Thorup:

On Jan 19, 2004, at 6:15 PM, Jens Miltner wrote:

Are you sure that none of the variables used in the std code (__size, __osize) is defined as a macro in your code in a header included before <string>?
Did you convert the CodeWarrior project using Xcode's project converter? If so, your project should have all the necessary build settings o.k.

Yes I doubled checked and made sure none of the variables are defined as a macro. And yes, I used XCode's CodeWarrior project converter to convert the project.


Upon closer examination it seems that I get the error whenever "std::min(...)" appears. What would I be doing wrong, that would cause "std::min(...)" to generate a parse error? Again, all of the errors are occurring within the system header <string>.

In my experience, min and max are often defined as macros as well - causing endless grief when using C++ ;-)
Since you've been checking for macros hiding variable / functions, I assume you also checked whether some other include file defined min/max as macros already?


Did you try to preprocess the file and see what actually comes out of the preprocessor for this file?

</jum>
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: error: parse error before `;' token ???
      • From: Dave Thorup <email@hidden>
References: 
 >error: parse error before `;' token ??? (From: Dave Thorup <email@hidden>)
 >Re: error: parse error before `;' token ??? (From: Jens Miltner <email@hidden>)
 >Re: error: parse error before `;' token ??? (From: Dave Thorup <email@hidden>)

  • Prev by Date: Targets & styles question
  • Next by Date: shark fails to launch from Xcode
  • Previous by thread: Re: error: parse error before `;' token ???
  • Next by thread: Re: error: parse error before `;' token ???
  • Index(es):
    • Date
    • Thread