Original Post
I have been working on a chess game (very very simple since its my first game) on linux using SDL and SDL_image, and i wanted to port it to windows. so i installed DevC++ 4.9.9.2, and it worked great. so i went to DevPack's and downloaded all the libraries needed.
this is how the package manager looked after all the libraries installed. so i made a new SDL project, and example code worked fine. so i tried to put my chess game code (which worked fine when compiling in linux) along with SDL_image. Code and it gives this following list of errors: 8 C:\Dev-Cpp\include\SDL\SDL.h:34, from SDLchess.c In file included from C:/Dev-Cpp/include/SDL/SDL.h:34,from SDLchess.c 69 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 69 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 69 C:\Dev-Cpp\include\SDL\SDL_image.h [Warning] data definition has no type or storage class 71 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 71 C:\Dev-Cpp\include\SDL\SDL_image.h [Warning] data definition has no type or storage class 72 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 72 C:\Dev-Cpp\include\SDL\SDL_image.h [Warning] data definition has no type or storage class 80 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 81 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 82 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 83 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 84 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 85 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 86 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 87 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 88 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 89 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token and it goes on and on for another 50 lines like this. what is the problam ? (and if someone wants me to try a simple example code and tell him if i get any errors, then i will do it if he asks) Any reply will be welcome.
this is how the package manager looked after all the libraries installed. so i made a new SDL project, and example code worked fine. so i tried to put my chess game code (which worked fine when compiling in linux) along with SDL_image. Code and it gives this following list of errors: 8 C:\Dev-Cpp\include\SDL\SDL.h:34, from SDLchess.c In file included from C:/Dev-Cpp/include/SDL/SDL.h:34,from SDLchess.c 69 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 69 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 69 C:\Dev-Cpp\include\SDL\SDL_image.h [Warning] data definition has no type or storage class 71 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 71 C:\Dev-Cpp\include\SDL\SDL_image.h [Warning] data definition has no type or storage class 72 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 72 C:\Dev-Cpp\include\SDL\SDL_image.h [Warning] data definition has no type or storage class 80 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 81 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 82 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 83 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 84 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 85 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 86 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 87 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 88 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token 89 C:\Dev-Cpp\include\SDL\SDL_image.h syntax error before '*' token and it goes on and on for another 50 lines like this. what is the problam ? (and if someone wants me to try a simple example code and tell him if i get any errors, then i will do it if he asks) Any reply will be welcome.