Failed to compile SDL2 with GCC 5.3.0/6.2.0 (SDL_bool prob)
"NetCraft" <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
I try to build SDL2 with GCC 6.2.0 but I get these errors:
Code:
src/SDL.c:84:12: error: cannot initialize return object of type 'SDL_bool' with an rvalue of type 'bool'
return (SDL_SubsystemRefCount[subsystem_index] == 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/SDL.c:98:12: error: cannot initialize return object of type 'SDL_bool' with an rvalue of type 'bool'
return SDL_SubsystemRefCount[subsystem_index] == 1 || SDL_bInMainQuit;
Does anybody know how to solve it?
_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org