Re: Compile error in GCC but not other compilers
Re: Compile error in GCC but not other compilers
- Subject: Re: Compile error in GCC but not other compilers
- From: Paul Forgey <email@hidden>
- Date: Mon, 15 May 2006 13:59:53 -0700
I think this is because you put class xxx inside an empty namespace,
then tried to get to refer to xxx from outside that namespace.
On May 15, 2006, at 12:08 PM, James W. Walker wrote:
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:
40aphrodite.com
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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