Re: error: parse error before `;' token ???
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.