Stdout.txt and Problem with SDL_audio.h using MingW-3.1.0-1

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[10])(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.

Thank you.–

  • Akin

Selon Akinwale Ariwodola :

void (SDLCALL *filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);

This is a know problem of SDL 1.2.8 on Windows. Remove SDLCALL from this line
and everything should compile fine.