Problems with win32 cross-compiled binary

I suspect this is a FAQ, but here it goes.

I have cross-compiled Sarien (an interpreter for old Sierra AGI games)
from Linux to win32 using Xmingw32 and SDL 0.9.9. The resulting binary
is available at http://agi.helllabs.org/stuff/s0444w32.zip. When I try
to execute sarien in wine or win32, it crashes with the following
message:

Warning: SDL version mismatch – expected: 0.9.9, loaded: 0.0.0
Couldn’t initialize SDL: Couldn’t create window

Sound, on the other hand, seems to initialize well. Wine gives some
extra debug messages:

err:module:BUILTIN32_LoadImage Attemp to instantiate built-in dll
’DDRAW’ twice in the same address-space. Expect trouble!
Warning: SDL version mismatch – expected: 0.9.9, loaded: 0.0.0
fixme:console:SetConsoleCtrlHandler (0x7fd0161d,1) - no error checking
or testing yet
CreateWindowEx32A: bad class name 0000
Couldn’t initialize SDL: Couldn’t create window

Any ideas?

Best regards,
claudio

Warning: SDL version mismatch – expected: 0.9.9, loaded: 0.0.0

I’ve never seen this message before. Can you put a print statement in
SDL_Linked_Version() in SDL.c to see what’s going on?

err:module:BUILTIN32_LoadImage Attemp to instantiate built-in dll
’DDRAW’ twice in the same address-space. Expect trouble!
Warning: SDL version mismatch – expected: 0.9.9, loaded: 0.0.0
fixme:console:SetConsoleCtrlHandler (0x7fd0161d,1) - no error checking
or testing yet
CreateWindowEx32A: bad class name 0000
Couldn’t initialize SDL: Couldn’t create window

Are you linking with libSDL.a or a version of winmain.c?

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec