User forums > Using Code::Blocks

compilation on new gcc 4.1

(1/2) > >>

AlexPaes:
Hi to everyone,

I just wanted to inform the people developing Code::Blocks, in case they aren't aware of this yet, that gcc 4.1 by default complains about using the class name in class methods declaration like:


--- Code: ---class myclass
{
        int myclass::run();
};

--- End code ---

it wants:


--- Code: ---class myclass
{
        int run();
};

--- End code ---

Anyway i know this can be worked around by turning off the "extra qualification" but as i see no particular advantage in having class methods declared like this i decided to post and inform as people keep having these mistakes when building codeblocks with gcc41

cheers, and keep up the good work

takeshimiya:
If you know a list about the pedantic/iso things that GCC4 complains over GCC3, please post it, might be good to know. :)

Michael:
May be you would like to give a look at here.

Best wishes,
Michael

takeshimiya:
I've always wondered what those thousand "warning: type attributes are honored only at type definition" means, when compiling wxWidgets.

thomas:
It means exactly what it says. It is due to using __declspec in the wrong place. Welcome to the wonderful world of macros.

Navigation

[0] Message Index

[#] Next page

Go to full version