Newbie to SDL

Hi everybody,

I recently downloaded the SDL Development Libraries for mingw32. I
followed the FAQ instructions for setting up the Dev-C++ environment,
and I get the following error when trying to build a C++ examples:

Syntax error before ‘[’ token (in file SDL_audio.h)

I get this error only when trying to compile using a C++ compiler, the
examples compiled with the C compiler were just fine. Can anybody give
me some tip about this?

Thanks in advance,

Federico.

Federico Ricca a ?crit :

Hi everybody,

I recently downloaded the SDL Development Libraries for mingw32. I
followed the FAQ instructions for setting up the Dev-C++ environment,
and I get the following error when trying to build a C++ examples:

Syntax error before ‘[’ token (in file SDL_audio.h)

I get this error only when trying to compile using a C++ compiler, the
examples compiled with the C compiler were just fine. Can anybody give
me some tip about this?

Stephane