[SDL] Re: parse error in SDL_audio.h using g++ and -mno-cygwin

elhja elhja at katamail.com
Wed Mar 9 23:38:27 PST 2005


> please forgive me if i'm rehashing something that as already been covered
> and addressed, but i'm both new to SDL and revisiting C/C++ after a long
> soujourn with Java.
> 
> what i'm aiming to do is compile a C++ application with [-mno-cygwin].
> unforunately, this results in the following error:
>    
>    /usr/local/include/SDL/SDL_audio.h:97: error: parse error before `[' token
> 

As I wrote a few days ago I've got the same problem upgrading from SDL
1.2.7 to 1.2.8 and compiling against MinGW 3.3.1 with Dev-Cpp.

....
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?!
....

Again: I don't know why, by this work.

elhja





More information about the SDL mailing list