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 9065769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:35:22+00:00 2026-06-16T16:35:22+00:00

I am attempting to compile an incomplete program to try and catch syntax issues

  • 0

I am attempting to compile an incomplete program to try and catch syntax issues before things get too large. That being said, the classes that I have created are all but complete (a few member functions are stubbed), and contained in separate files from the main program. Visual Studio recognizes them as classes (which can be seen by mousing over them).

Now, the problem is that when I try to compile this, I get the following errors:

1>d:\my programs\powerplay\powerplay\powerplay.hpp(99): error C2065: 'pp_player' : undeclared identifier
1>d:\my programs\powerplay\powerplay\powerplay.hpp(99): error C2146: syntax error : missing ')' before identifier 'player'
1>d:\my programs\powerplay\powerplay\powerplay.hpp(99): error C2182: 'resolve_current_space' : illegal use of type 'void'

Line 99 of this file is a function declaration (where pp_player is the larger of my classes, and as stated before, recognized by VS as a class, in the editor anyway):

void resolve_current_space (pp_player& player);

Everything is properly #include ‘d, and there are no problems with the other classes whatsoever. I have tried commenting out this function (declaration and definition), but the compiler chokes on the next function that tries to use an object of this class as an argument. I tried instantiating an object of this class earlier in the file, and while I did not get the exact same error, it more or less amounted to the same thing.

Anyone have an idea as to what this could be? If needed, I can make the entirety of my source available if the above isn’t enough.

  • 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-16T16:35:23+00:00Added an answer on June 16, 2026 at 4:35 pm

    There is no declaration of pp_player in scope at the point you’re trying to use it, plain and simple, that’s what that error message means.

    So, despite your assertion that everything is properly included, either that’s not the case, or the things you have included do not declare or define pp_player before that point.

    It’s a basic tenet in C and C++ that most things (there are some edge cases in the standards that don’t require this, such as labels) need to be declared before use.

    Make sure you define the type before line 99 of the hpp file.

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

Sidebar

Related Questions

I am attempting to compile some code, but am running into some problems that
When attempting to compile my C# project, I get the following error: 'C:\Documents and
I am attempting to compile and run a C program in Xcode. This program
I'm attempting to compile some C# with gmcs version 2.11.0 that includes System.Tuple. Supposedly
I continue to get this error when attempting to compile a bit of code
I am attempting to compile a program against libwireshark on Ubuntu 10.10. I have
I'm attempting to compile a file that instantiates this class. GCC gives me cryptic
I am attempting to compile several WAR files, all that depend on a common
I'm attempting to compile a sample c file that was given to me, but
I'm attempting to compile Java 1.4 code that was created by IBM's WSDL2Java on

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.