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

  • Home
  • SEARCH
  • 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 145259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:23:31+00:00 2026-05-11T08:23:31+00:00

I tried to compile my program, with Code::Blocks (gcc compiler). And I get an

  • 0

I tried to compile my program, with Code::Blocks (gcc compiler). And I get an error: Here is the source file it complaining about:

#ifndef BOT_H #define BOT_H  #include 'player.h' #include 'timer.h'  class BOTS; // forward decalaration of BOTS  class BOT : public PLAYER { public:     enum BotStatus{BotMoving,BotPursue,BotChasePowerup};     enum BotMovDir{Up,Down,Left,Right,Forward,Backward};     enum BotSkill{Easy,Normal,Hard,Expert,Insane}; protected:     BotStatus Status;  // this is the line it complaining about     BotMovDir CurrentMov;     TIMER CTimer;     bool Stucked;     BotSkill Skill;     VECTOR3D AimTarget; //  VECTOR3D ShotTarget;     PLAYER *PursueObj;     bool SameLevel;     BOTS *Owner;     bool PlayerHitMe;     void OnDamage(double dmg,const wchar_t *Shooter,bool s);     void OnReset(); public:     BOT(BOTS *o,const wchar_t *botname) : PLAYER(botname), PlayerHitMe(false), Status(BotMoving), Skill(Easy), Owner(o)     {         PlayerInit();     }     void SetSkill(BotSkill bs) {Skill=bs;}     void BotControl();     void SetSameLevel(bool s) {SameLevel=s;}     virtual ~BOT() {} };  #endif 

It complains about the 16th line ‘multiple types in one declaration’ and it is driving me crazy. I googled a lot, but the common solution is ‘find the missing semicolon’. And the problem is that there is no missing semicolon at all. It always point to the 16th line (at least after the protected) even if there is a comment or even it is beyond the eof (when I remove all fields so the file become small).

(This problem might be trivial and I may be tired now, so I must have a sleep. And I hope someone will have given me some advice by morning tomorrow. )

  • 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. 2026-05-11T08:23:31+00:00Added an answer on May 11, 2026 at 8:23 am

    Do you have a class or some other UDT named Status? What if you change the name of the member to Status_ ?

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

Sidebar

Ask A Question

Stats

  • Questions 112k
  • Answers 112k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The inherit_views plugin might do the job: http://github.com/ianwhite/inherit_views/tree/master. I've used… May 11, 2026 at 9:50 pm
  • Editorial Team
    Editorial Team added an answer Sorry to have bothered you but I'm very sure that… May 11, 2026 at 9:50 pm
  • Editorial Team
    Editorial Team added an answer Check out this related question and this one. Honestly, I… May 11, 2026 at 9:50 pm

Related Questions

I've recently started poking around in Visual Studio 2005, and I'm mucking about in
I tried to flag a collection property on a class as Obsolete to find
I have a DSL Tools solution. I need to add a weak-named reference to
I have two computers. Both running WinXP SP2 (I don't really know ho similar

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.