[Bug c++/80594] error: ‘SDL_Window’ does not name a type

2024-04-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80594

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #2 from Andrew Pinski  ---
https://stackoverflow.com/questions/12695719/sdl-window-does-not-name-a-type

Basically you are using the header files from SDL 1.x but the source you are
compiling is written against SDL 2.x.

Not a GCC Bug.

[Bug c++/80594] error: ‘SDL_Window’ does not name a type

2017-05-02 Thread d25fe0be at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80594

d25fe0be@  changed:

   What|Removed |Added

 CC||d25fe0be at outlook dot com

--- Comment #1 from d25fe0be@  ---
$ grep SDL_Window test.ii 
 SDL_Window* window;
$ 

Just as what the compiler says, SDL_Window is not declared (at least in the
attached preprocessed source file).

Make sure you have included the appropriate header files, and SDL_Window's
declaration is not guarded by some macro(s) that are missing when compiling
with GCC.