• 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
Compile error in GCC but not other compilers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compile error in GCC but not other compilers


  • Subject: Compile error in GCC but not other compilers
  • From: "James W. Walker" <email@hidden>
  • Date: Mon, 15 May 2006 12:08:22 -0700

One of my problems in porting from CodeWarrior to Xcode boils down to the code below:

namespace
{
	class xxx
	{
		xxx();
	};
}

class yyy
{
	friend class xxx;
};

xxx::xxx()
{
}


Xcode says:

error: 'xxx' has not been declared
error: ISO C++ forbids declaration of 'xxx' with no type

CodeWarrior has no problem with this code, nor does the Comeau online compiler test page. So, is this a bug in GCC?
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Compile error in GCC but not other compilers
      • From: Howard Hinnant <email@hidden>
    • Re: Compile error in GCC but not other compilers
      • From: Paul Forgey <email@hidden>
  • Prev by Date: Re: Pre-binding disabled/enabled warnings
  • Next by Date: -weak_framework CHUD
  • Previous by thread: Redefinition of strbuf
  • Next by thread: Re: Compile error in GCC but not other compilers
  • Index(es):
    • Date
    • Thread