Sign in to follow this  

GCC Error

This topic is 3312 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 3312 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this