Skip to main content
GameDev.net gamedev.net
🔒 Locked

GCC Error

Started by Denisius Nov 16, 2008 at 12:17 PM 3 replies 1k views
Original Post
Denisius
Denisius
Whenever I try to compile I get the following error: "In file included from act_comm.cpp:26: lockers.h:81: error: extra qualification âlockers_object::â on member âget_next_free_locker_numberâ" I am using GCC 4.3.
rip-off
rip-off
And what does the code look like?
supamike
supamike
Hey, remove the extra qualifier from your method declaration in the header file.. like

lockers_object::Method( int param, etc.. )

just becomes

Method( int param, etc.. )

GCC doesn't like the extra qualifiers in the class definition.
Denisius
Denisius
Quote:
Original post by supamike
Hey, remove the extra qualifier from your method declaration in the header file.. like

lockers_object::Method( int param, etc.. )

just becomes

Method( int param, etc.. )

GCC doesn't like the extra qualifiers in the class definition.



That did the trick, thanks.
Bregma
Bregma
Quote:
Original post by supamike
GCC doesn't like the extra qualifiers in the class definition.


That's because it's illegal code. G++ accept only C++, not some other language.
Stephen M. Webb
Professional Free Software Developer

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.