Jump to content
  • Advertisement
Sign in to follow this  
Denisius

GCC Error

This topic is 3626 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
Advertisement
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
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!