Missing the point?

ok, I know I?m compleatly missing the point probably, but here is my case:

I have mingw gcc 2.95.2

I unzipped the i-mingw… zip file to it?s directory but when I compile a
program using sdl I get a lot of :
D:\WINDOWS\TEMP\cc1Btfgb.o(.text+0x293):loopwave.c: undefined reference to
`SDL_
FreeWAV’
messages. What flags do I need to set to compile or is there some other
thing that I am missing?