Some problem of using SDL under VC++

hello, it’s my first time to use SDL to display YUV file.
I follow the description in “VisualC”, adding two lib(“SDL.lib” and “SDLmain.lib” ) into the project, and setting the project “Multi-threaded DLL” and so on, but when I build the project, the Linker cannot open the lib “SDLmain.lib”:------------------------------------------------------------------------
--------------------Configuration: ldecod - Win32 Debug--------------------
Compiling…
output.c
F:\gao\H.264\jm76\JM\ldecod\src\output.c(326) : warning C4013: ‘SDL_LockOverlay’ undefined; assuming extern returning int
F:\gao\H.264\jm76\JM\ldecod\src\output.c(335) : warning C4013: ‘SDL_UnlockOverlay’ undefined; assuming extern returning int
F:\gao\H.264\jm76\JM\ldecod\src\output.c(336) : warning C4098: ‘sdl_display_yuv’ : ‘void’ function returning a value
Linking…
LINK : fatal error LNK1181: cannot open input file "SDLmain.lib"
Error executing link.exe.

ldecod.exe - 1 error(s), 3 warning(s)

May someone tell me what’s the matter? and how can I fix it?
I’ll appreciate your help

??? http://sms.tom.com/index2.php?inc=3&type=24
??? http://sms.tom.com/index2.php?inc=3&type=26
??? http://sms.tom.com/index2.php?inc=3&type=25

??? http://sms.tom.com/index2.php?inc=2
??? http://sms.tom.com/index2.php?inc=2&type=3740
??? http://sms.tom.com/index2.php?inc=2&type=30

??? http://sms.tom.com/index2.php?inc=song

Hey all -

I’m new to sdl and would like to know how I can handle key events when in
waiting mode instead of polling mode. Right now I only get it to work with
polling mode…

thanks till> -----Urspr?ngliche Nachricht-----

Von: sdl-bounces+till.bay=inf.ethz.ch at libsdl.org
[mailto:sdl-bounces+till.bay=inf.ethz.ch at libsdl.org] Im Auftrag von ww
Gesendet: Montag, 14. Juni 2004 15:06
An: sdl at libsdl.org
Betreff: [SDL] Some problem of using SDL under VC++

hello, it’s my first time to use SDL to display YUV file.
I follow the description in “VisualC”, adding two
lib(“SDL.lib” and “SDLmain.lib” ) into the project, and
setting the project “Multi-threaded DLL” and so on, but when
I build the project, the Linker cannot open the lib “SDLmain.lib”:


--------------------Configuration: ldecod - Win32
Debug--------------------
Compiling…
output.c
F:\gao\H.264\jm76\JM\ldecod\src\output.c(326) : warning
C4013: ‘SDL_LockOverlay’ undefined; assuming extern returning int
F:\gao\H.264\jm76\JM\ldecod\src\output.c(335) : warning
C4013: ‘SDL_UnlockOverlay’ undefined; assuming extern returning int
F:\gao\H.264\jm76\JM\ldecod\src\output.c(336) : warning
C4098: ‘sdl_display_yuv’ : ‘void’ function returning a value
Linking…
LINK : fatal error LNK1181: cannot open input file "SDLmain.lib"
Error executing link.exe.

ldecod.exe - 1 error(s), 3 warning(s)


May someone tell me what’s the matter? and how can I fix it?
I’ll appreciate your help

??? http://sms.tom.com/index2.php?inc=3&type=24
??? http://sms.tom.com/index2.php?inc=3&type=26
??? http://sms.tom.com/index2.php?inc=3&type=25

??? http://sms.tom.com/index2.php?inc=2
??? http://sms.tom.com/index2.php?inc=2&type=3740
??? http://sms.tom.com/index2.php?inc=2&type=30

??? http://sms.tom.com/index2.php?inc=song

Is this what you want?

//your input loop
Uint8 *keys;

//input
keys = SDL_GetKeyState(0);
if(keys[SDLK_ESCAPE] == SDL_PRESSED)
{
bDone = true;
}

— “Till G. Bay” <till.bay at inf.ethz.ch> wrote:> Hey all -

I’m new to sdl and would like to know how I can handle key
events when in
waiting mode instead of polling mode. Right now I only get it
to work with
polling mode…

thanks till

-----Urspr??ngliche Nachricht-----
Von: sdl-bounces+till.bay=inf.ethz.ch at libsdl.org
[mailto:sdl-bounces+till.bay=inf.ethz.ch at libsdl.org] Im
Auftrag von ww
Gesendet: Montag, 14. Juni 2004 15:06
An: sdl at libsdl.org
Betreff: [SDL] Some problem of using SDL under VC++

hello, it’s my first time to use SDL to display YUV file.
I follow the description in “VisualC”, adding two
lib(“SDL.lib” and “SDLmain.lib” ) into the project, and
setting the project “Multi-threaded DLL” and so on, but when

I build the project, the Linker cannot open the lib
"SDLmain.lib":



--------------------Configuration: ldecod - Win32
Debug--------------------
Compiling…
output.c
F:\gao\H.264\jm76\JM\ldecod\src\output.c(326) : warning
C4013: ‘SDL_LockOverlay’ undefined; assuming extern
returning int
F:\gao\H.264\jm76\JM\ldecod\src\output.c(335) : warning
C4013: ‘SDL_UnlockOverlay’ undefined; assuming extern
returning int
F:\gao\H.264\jm76\JM\ldecod\src\output.c(336) : warning
C4098: ‘sdl_display_yuv’ : ‘void’ function returning a value
Linking…
LINK : fatal error LNK1181: cannot open input file
"SDLmain.lib"
Error executing link.exe.

ldecod.exe - 1 error(s), 3 warning(s)



May someone tell me what’s the matter? and how can I fix it?
I’ll appreciate your help

??? http://sms.tom.com/index2.php?inc=3&type=24
??? http://sms.tom.com/index2.php?inc=3&type=26
??? http://sms.tom.com/index2.php?inc=3&type=25

??? http://sms.tom.com/index2.php?inc=2
??? http://sms.tom.com/index2.php?inc=2&type=3740
??? http://sms.tom.com/index2.php?inc=2&type=30

??? http://sms.tom.com/index2.php?inc=song


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.