• 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 00:15:44 +0100

Am 19.01.2004 um 23:33 schrieb Dave Thorup:

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?

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.


</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>)

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