Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8853457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:39:28+00:00 2026-06-14T13:39:28+00:00

I know the common answer for this question, but for some reason I get

  • 0

I know the common answer for this question, but for some reason I get the error when using the right syntax, on Code::Blocks, I’ll post a sample to show I’m not bluffing:

  class BulletPlacer : sf::Drawable
  {
     public:
        BulletPlacer();
        BulletPlacer(const unsigned Quantity);

        ~BulletPlacer();
  };

That was a small portion of the hpp file.

   BulletPlacer::BulletPlacer()
     :Amount(0), Min(0)
   {}

   BulletPlacer::BulletPlacer(const unsigned Quantity)
     :Amount(Quantity), Min(0)
   {
       Bullet shot;
       ShotVec.reserve(Amount);
       for(unsigned i = 0; i < Amount; ++i)
       { ShotVec.push_back(shot); }
   }

   BulletPlacer::~BulletPlacer() { PolVecV.clear(); ShotVec.clear(); }

And that was the cpp. It compiled fine until I began refactoring the class and I get the error with all the methods. I also get other errors that have no place at all and I get them with all the functions in the class. I even redownloaded a GCC version only to find that it gives me the exact same result.

Here’s the simplified version of the error log:

error: extra qualification 'BulletPlacer::' on member 'BulletPlacer' [-fpermissive]|
error: 'BulletPlacer::BulletPlacer()' cannot be overloaded|
error: with 'BulletPlacer::BulletPlacer()'|

And it gets repeated like this with all functions. It’s very annoying since I can’t advance at all with my SFML game just because of this and checking a 300 lines file for possible errors just because the compiler is mad at me is no fun at all. And no, none of the files that gets used by “BulletPlacer” gets this.

And it gets worse, a totally unrelated class gets something similar as well:

error: cannot define member function 'BulletPlacer::Enemy::Enemy' within 'BulletPlacer'

When the class doesn’t even include the file…

I’m using GCC 4.7.1

Thanks in advance for any help I may get.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:39:29+00:00Added an answer on June 14, 2026 at 1:39 pm

    The errors imply that the compiler thinks those definitions are found lexically within the class definition, which implies a missing }; or somesuch.

    That’s all I can say from the information provided.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is a common error, but bear with me. I've pursued the
First, I know this is kind of common question, but I could not find
i know this sounds really common and so trivial but , am having a
I know this is a common question and there are oodles of resources on
I know this is a pretty common error, usually having to do with the
This seems to be a common question, but I've yet to find a very
I think this is a common and typical question from novices but I still
I know this sounds like a common question and I should be able to
This is probably an extremely difficult question to answer, but here is my question
As you all know, it's extremely common to have code like this: <a href='#'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.