• 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: Dave Thorup <email@hidden>
  • Date: Tue, 20 Jan 2004 12:10:02 -0500

On Jan 20, 2004, at 11:27 AM, Jens Miltner wrote:

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?

Doh! I didn't check for min and sure enough it was defined as a macro. ;( It's also being included in the precompiled header for the project. :( For now I just did a #include <string> before the other header in our prefix file and it now gets past the parse errors. Any better suggestions for working around this?


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

I actually did try to do this, but it gave me the same errors when trying to preprocess the file and no output.


Well, now that I'm past this I've run into some "goto" problems. :( Ugh! Whoever wrote this code with "goto" ought to be run over.

Thanks again for the help!
_____________________________

Dave Thorup
Software Engineer
email@hidden

http://www.kuwan.net
Defaults Manager - The premier editor for Mac OS X's User Defaults / Preferences database.
_______________________________________________
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: Kevin Grant <email@hidden>
    • Re: error: parse error before `;' token ???
      • From: Jens Miltner <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>)
 >Re: error: parse error before `;' token ??? (From: Jens Miltner <email@hidden>)

  • Prev by Date: Re: How to build a component?
  • Next by Date: RE: Using Perl in a Panther environment
  • Previous by thread: Re: error: parse error before `;' token ???
  • Next by thread: Re: error: parse error before `;' token ???
  • Index(es):
    • Date
    • Thread