I’ve upgraded my SDL library from 1.2.7 to 1.2.8.
I’ve tried to recompile a project I was working on and I’ve got the
following compilation errors:----
Compiler: Default compiler
Building Makefile: “D:\tmp\ss00\Makefile.win"
Executing make…
make.exe -f “D:\tmp\ss00\Makefile.win” all
g++.exe -c main.c -o main.o -I"C:/Dev-Cpp/include/c++/3.3.1”
-I"C:/Dev-Cpp/include/c++/3.3.1/mingw32"
-I"C:/Dev-Cpp/include/c++/3.3.1/backward"
-I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Dev-Cpp/include"
In file included from C:/Dev-Cpp/include/SDL/SDL.h:39,
from main.c:4:
C:/Dev-Cpp/include/SDL/SDL_audio.h:97: error: syntax error before `[’ token
make.exe: *** [main.o] Error 1
Execution terminated
comparing SDL_audio.h version 1.2.8 to previous 1.2.7 I found that the only
difference on line 97 is:
(1.2.8) void (SDLCALL *filters[10])(struct SDL_AudioCVT *cvt, Uint16
format);
(1.2.7) void ( *filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);
deleting “SDLCALL” in 1.2.8 all seems to work fine… …but why?!
Does anybody has a suitable answer?
Thanks!!
– elhja –