I followed the directions in the example files linked to from the SDL FAQ.
I am not very good when it comes to windows, I just copied my code across from
my linux box. When I compile it doesn’t seem to have a problem with the SDL
stuff, it just chokes up on my vectors. Is there a difference between how you
define a unix vs win32 vector?
Thanks
Jaren Peterson
Can you post a program small enough to show what the problem is?–
Olivier A. Dagenais - Software Architect and Developer
“Jaren Peterson” wrote in message
news:3ACA2859.34A19140 at nffs.com…
I followed the directions in the example files linked to from the SDL
FAQ.
I am not very good when it comes to windows, I just copied my code across
from
my linux box. When I compile it doesn’t seem to have a problem with the
SDL
stuff, it just chokes up on my vectors. Is there a difference between how
you
define a unix vs win32 vector?
Thanks
Jaren Peterson
I followed the directions in the example files linked to from the SDL FAQ.
I am not very good when it comes to windows, I just copied my code across from
my linux box. When I compile it doesn’t seem to have a problem with the SDL
stuff, it just chokes up on my vectors. Is there a difference between how you
define a unix vs win32 vector?
Have you set the enum-size to int as it is also mentioned in the FAQ ?
If not, the compiler doesn’t reserve enough memory for structures like
SDL_Event which causes the DLL to overwrite other variables next to
your event structure.
You can simply compare sizeof( SDL_Event ) between you Linux-program
and you win32-Program. If it’s different, you have found the problem.
The compiler option for setting the size of enums is “-b”.
Bye,
MartinOn Tue, 03 Apr 2001 13:45:29 -0600, Jaren Peterson wrote: