https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80594
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- 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.