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);
return 0;

$ gcc -o main.exe sdl-config --cflags sdl-config --libs main.c
/tmp/ccKgESwx.o(.text+0x26):main.c: undefined reference to
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

I configured SDL with
./configure --disable-nasm
(as described in

any ideas?
thanks for your help,
+++ GMX - die erste Adresse f?r Mail, Message, More +++
Neu: Preissenkung f?r MMS und FreeMMS!