I just downloaded and unpacked the SDL-1.2.8 MingW development
package, and set it up with my compiler. When I try compiling, I get
an error message which goes something along the lines of: Unexpected [
on line 97.
I edited the SDL.h file to comment out the part which includes
SDL_audio.h. This works, but it is only temporary and not ideal as I
would have to make use of SDL’s audio functions later in my project.
Here is line 97 from the SDL_audio which is within the SDL_AudioCVT structure.:
void (SDLCALL *filters)(struct SDL_AudioCVT *cvt, Uint16 format);
What could possibly be the problem and how can I solve it?
Also, I’d like to know if there’s a way to make console output go
directly to the console window instead of the stdout.txt file.