[SDL] SDL with visual C++

Hubert Maraszek marach5 at gmail.com
Sat Jun 6 10:19:05 PDT 2009


Just one question: Why you are using precompiled headers???

2009/6/5 T3mp3st <max_revelle at hotmail.co.uk>

>
> Hey i got SDL linked into visual  C++, but when i try to run the following
> code it gives me an error..
>
> #include "stdafx.h"
> #include "SDL.h"
>
> int main()
> {
>        //Start SDL
>        SDL_Init( SDL_INIT_EVERYTHING );
>
>        //Quit SDL
>        SDL_Quit();
>        return 0;
> }
>
>
> the errror:
>
> (1) : fatal error C1010: unexpected end of file while looking for
> precompiled header. Did you forget to add '#include "stdafx.h"' to your
> source?
> --
> View this message in context:
> http://www.nabble.com/SDL-with-visual-C%2B%2B-tp23891987p23891987.html
> Sent from the SDL mailing list archive at Nabble.com.
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090606/58c6921a/attachment.htm>


More information about the SDL mailing list