When trying to compile wsing mingw c++ i get:
SDL/SDL_audio.h:97: parse error before `[’ token
When trying to compile wsing mingw c++ i get:
SDL/SDL_audio.h:97: parse error before `[’ token
When trying to compile wsing mingw c++ i get:
SDL/SDL_audio.h:97: parse error before `[’ token
Just remove SDLCALL from that line. It’s a parser bug in gcc.
See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment
Sam Lantinga wrote:
When trying to compile wsing mingw c++ i get:
SDL/SDL_audio.h:97: parse error before `[’ token
Just remove SDLCALL from that line. It’s a parser bug in gcc.
Really ? IIRC __cdecl it just comes with #include <windows.h> in mingw.
Maybe it should just be fixed in begin_code.h
Stephane
Sam Lantinga wrote:
When trying to compile wsing mingw c++ i get:
SDL/SDL_audio.h:97: parse error before `[’ token
Just remove SDLCALL from that line. It’s a parser bug in gcc.
Really ? IIRC __cdecl it just comes with #include <windows.h> in mingw.
Maybe it should just be fixed in begin_code.h
The bug is in the parsing of the declaration of an array of function pointers
in conjunction with SDLCALL.
See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment