[SDL] A problem about SDL
KHMan
keinhong at gmail.com
Sat Jun 23 23:03:26 PDT 2007
yangbocai2002 at sohu.com wrote:
> [snip]
> I have a simple program named test.cpp.
>
> #include "SDL/SDL.h"
>
> int main( int argc, char* argv[])
> {
> SDL_Init(SDL_INIT_EVERYTHING);
> SDL_Quit();
> return 0;
> }
Here's a different opinion. For beginners, never write such
programs from scratch! :-) Try the test programs first. Then, try
simple programs, like Sam's aliens demo. Then, invest some time in
learning how gcc is called and how to write simple Makefiles, or
learn autoconf. Once you've got that, you can start modifying and
learning source code of programs that work.
Find the test programs in the standard SDL library, and use the
standard way: configure, compile, test. If you can't find the test
programs anywhere, grab the SDL sources and copy the test programs
from there.
HTH,
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
More information about the SDL
mailing list