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

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


  • Subject: error: parse error before `;' token ???
  • From: Dave Thorup <email@hidden>
  • Date: Mon, 19 Jan 2004 17:33:05 -0500

I can't seem to work my way around this, so here goes...

I'm getting the following error when trying to compile a large project:

In file included from /usr/include/gcc/darwin/3.3/c++/string:53,
/usr/include/gcc/darwin/3.3/c++/bits/basic_string.h:1044: error: parse error before `;' token


This is the actual line of code:

	size_type __len = std::min(__size, __osize);

I'm trying to convert a large Carbon project from CodeWarrior to XCode and I can't figure out why I'd be getting this error. The file that it's having problems with is just a standard system header (#include <string>).

So does anyone have any suggestions on where I should try looking for problems. The code all looks good and is pretty generic c++ stuff for the most part. Is there some gcc setting that needs to be turned on?

Thanks for any 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: Jens Miltner <email@hidden>
  • Prev by Date: Searchable Archives?
  • Next by Date: Re: error: parse error before `;' token ???
  • Previous by thread: Re: Searchable Archives?
  • Next by thread: Re: error: parse error before `;' token ???
  • Index(es):
    • Date
    • Thread