SDL cygwin

Hi everyone,

compiling the following simple code, I run into the linker error message
shown below:

#include <stdlib.h>
#include “SDL.h”

int main(int argc, char *argv[])
{
Uint32 bpp = SDL_VideoModeOK(640, 480, 16, SDL_HWSURFACE);
SDL_Init(SDL_INIT_VIDEO);
SDL_Quit();
return 0;
}

$ gcc -o main.exe sdl-config --cflags sdl-config --libs main.c
/tmp/ccKgESwx.o(.text+0x26):main.c: undefined reference to
`_SDL_VideoModeOK’
collect2: ld returned 1 exit status

Interestingly, the code will be compiled when I outcomment the
SDL_VideoModeOK function call, although other SDL lib function calls still exist (SDL_Init
etc.).

I configured SDL with
./configure --disable-nasm
(as described in
http://www.libsdl.org/pipermail/sdl/2003-September/056478.html)

any ideas?
thanks for your help,
Stefan–
+++ GMX - die erste Adresse f?r Mail, Message, More +++
Neu: Preissenkung f?r MMS und FreeMMS! http://www.gmx.net