[SDL] Minimal example of weird pointer behaviour

Sam Lantinga slouken at devolution.com
Tue Sep 10 09:55:01 PDT 2002

> Can anyone with a Windows 2000 box to hand confirm the weird pointer behaviour 
> I've seen?  This short test program demonstrates it (you man need to change 
> the #include or WinMain declaration, I just picked the first set of options 
> taht worked with my cross-compiler setup):

> #include "SDL/SDL.h"

> int WinMain(int argc, char **argv)

I don't know if this is your problem, but you need to declare main() this way:
int main(int argc, char *argv[])

This does affect the initialization of DirectInput, so give it a try and let
me know if that fixes your problems.

	-Sam Lantinga, Software Engineer, Blizzard Entertainment

More information about the SDL mailing list