- To: gcc-help@xxxxxxxxxxx
- Subject: Re: Predeclarations of classes
- From: Andrew Haley <aph@xxxxxxxxxx>
- Date: Fri, 13 Apr 2012 14:19:54 +0100
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- In-reply-to: <op.wcpgdoycq74zhu@web>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1
On 04/13/2012 02:14 PM, Simon Lange wrote:
> hallo list,
>
> converting a project from VisualC++ to GCC (4.6.1) the following problem
> occurs:
>
> class A; //*
>
> class B
> {
>
> public:
>
> A* a;
> };
>
>
> brings at line " //* " the error-message:
>
> "predeclaration of struct A"
Not for me.
happy:~ $ ~/gcc/gcc-4_6-branch/install/bin/g++ t.cc -c
happy:~ $
Andrew.
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]