Help with SDL_mixer

I’m trying to compile&link a tutorial SDL_mixer source, but I got the
following error:----
Compiler: Default compiler
Building Makefile: “F:\temp\cccc\"
Executing make…
make.exe -f “F:\temp\cccc\” all
g++.exe main.o -o “Project3.exe” -L"C:/wxdev-cpp/lib” -mwindows -lmingw32
-lSDLmain -lSDL -lSDL_mixer

C:/wxdev-cpp/lib/libSDLmain.a(SDL_win32_main.o.b)(.text+0x35a): In function
console_main': C:/msys/1.0/home/Adam/SDL-1.2.7/src/main/win32/SDL_win32_main.c:249: undefined reference toSDL_main’

make.exe: *** [Project3.exe] Error 1

Execution terminated

I’m using wxDevCpp, and SDL is correctly installed.

Thanks in advance.