   SDL/OpenGL with Dev-C++ in C++
  I'm using the sample SDL/OpenGL program that comes with Dev-C++ and when I compile it as a C application it runs perfectly fine, but when I try to compile it as a C++ program it says:syntax error before '[' token line 97 of SDL_audio.hlines 96 and 97 are:double len_ratio;void (SDLCALL *filters[10])(struct SDL_AudioCVT * cvt,Uint16 format);is there any way to fix it(maybe a C++ language function to treat SDL as a C library instead of C++ one?)   
  i used to get this too. its a problem with the h file itself. i wasnt using audio so i just commented out the line or something(not really solving the problem though)you may need to get newer header files though   ;  looks like a C style cast to me, that may be invalid for C++, shouldn't there be a way to #ifdef to make it use C++ style casting?   ;Quote:Original post by eedoklooks like a C style cast to me, that may be invalid for C++, shouldn't there be a way to #ifdef to make it use C++ style casting?c style casts are allowed in c++ for this reason specifically, to not break compilation with legacy c apps.   ;  Just take out "SDLCALL".