I downloaded the source of SDL1.3,
but when I compiled and used it there were some problems.
First problem , when I compile(MSVC8+SP1) the SDL solution
at the scenes below:
scene1, at DEBUG mode, it compile successfully,
scene2, at RELEASE mode with the /O2(Maximize Speed) option , when it
was compiling the file “SDL_audiocvt.c”, the compiler crashed and
given the error report
g:\sdl\sdl-1.3\src\audio…/libm/math.h(41) : warning C4273: ‘floor’ : inconsistent dll linkage
Project : error PRJ0002 : Error result 1 returned from ‘C:\Program Files\Microsoft Visual Studio 8\VC\bin\cl.exe’.
scene3, at RELEASE mode with the /O1(Minimize Size) option, it could
not pass the compile and
given the error report below:
SDL_audiocvt.obj : error LNK2019: unresolved external symbol __ftol2 referenced in function _SDL_BuildWindowedSinc
SDL_audiotypecvt.obj : error LNK2001: unresolved external symbol __ftol2
SDL_string.obj : error LNK2001: unresolved external symbol __ftol2
SDL_audiocvt.obj : error LNK2019: unresolved external symbol _memset referenced in function _SDL_Resample
SDL_fill.obj : error LNK2001: unresolved external symbol _memset
.\Release/SDL.dll : fatal error LNK1120: 2 unresolved externals
I don’t know what to do about these errors.
scene4,at RELEASE mode with the /Od (Disable) option , it can pass compile.
How do I compile
SDL.dll successfully in RELEASE mode with /O1 or /O2 option?
Second problem, after I compiled successfully and run the example
"graywin" and “testwin”
( and others )
given by the source of SDL1.3, it only opened a blank window for me,
there was nothing on the window. I am sure I have
given all necessary resource to it, and when I was debugging
the programes, it seemed every sentence were no failed. And why?
My system is WindowsXP, my compiler is MSVC8+SP1, my video card is GT8600.
Who can give me some advices,thank you.