class - What's wrong here? - ISO C++ forbids declaration of 'Circle' with no type -


Maybe you can help me get this right. I have a class that is used to draw a circle, but the compiler sends me this message:

  in the file included ./Includes.h:19, ./Circle .h: 8 sec, from ./Circle.cpp :: ./GameApp.h:24: Error: ISO C ++ has not announced the declining 'Circle' with any type ./GameApp.h:24 : Error: Expected ';' Before '*' token  

here is GameApp.h:

  #include "Includes.h" category GameApp {public: GameApp (); ~ GameApp (); Zero submission (); Protected: zero InitGU (); Boole control (); Zero * Delist; // display list, sceGUStart is used by zero * fbp0; // frame buffer circle * circle; };  

Include.h looks like this:

  // ****************** * **************************************************************************************************** ** // include H. *** *********************************************************************************************** ******************************************************************************************* For *** // memalign () # include & lt; Pspkernel.h & gt; # Include & lt; Pspdisplay.h & gt; # Include & lt; Pspdebug.h & gt; # Include & lt; Stdio.h & gt; #include & lt; Psprtc.h & gt; // #include for Timer / FPS tasks & lt; Pspctrl.h & gt; # Include & lt; Math.h> // GU # included & lt; Pspgu.h & gt; # Include & lt; Pspgum.h & gt; // Custom #include "GameApp.h" # included "Circle H" // ************************************************************************************* ************************************************************************************************* **************************** Definitions #define BUF_WIDTH (512) #define #DefineCon_d (X) (cos ((x) * M_PI / 180 X) (Tan ((x) * M_PI / 180) ************************************************************************************ ******** Structures, datatages ... # INDEX VERTEX_TYPE_ # defined VERTEX_TYPE_ typedef struct {signed int color; Float x, y, z; } Summit; #endif  

and Circle H

  // ******************* *** ******************************* / ** / Circle H. // ************************************************************************************************* ************************************************************************************************ ****************************** CIRCLE_H_ #define CIRCLE_H_ #include "Includes.h" Class Circle {Public: Circle (Float R1); Circle (); Zero submission (); Float R; Float x, y; Float vx, vy; Protected: Top * Corners; Int n; }; Use  not   one-by-one    

(except for the precompiled header) it will almost certainly fall into the headache.

Include what you want , and no more. This will solve your problem.

You can forward it as Circle , but fixing your inclusion problem will help you more in the long run.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -