hanks, i guess it helped but still there's something wrong :(
Add to the link line:
And be sure to include "SDL.h" in main.cc.
Anyway IMHO you should use the SDL framework available from libSDL.org,
you can use it also from the command line adding to your link line:
-F~/Library/Frameworks/ -framework SDL
The problem with fink SDL is that it may require X11 and it needs the
libraries placed in the same place they are in your system, the problem
with selfbuilt SDL is that it doesn't work with OSX version below the
one of your system and you will need to place the libraries with an
installer in the same location where they are located in your system.