I have a C-code which I have not managed to run http://dl.getdropbox.com/u/175564/problem-sdl.png
The problem is in OpenGL or SDL. I do not have SDL.h at /usr/local/SDL/SDL.h, so gcc cannot find it.
I have SDL.h installed by MacPorts at /opt/local/include/SDL/SDL.h.
I tried to copy it to /Masi/local/SDL/SDL.h unsuccessfully at the folder by
cp /opt/local/include/SDL/SDL.h /
and by
cp /opt/local/include/SDL/SDL.h /Masi/local/SDL/
I tried to solve the problem by creationg a symlink by
$ln -s /opt/local/include/SDL/SDL.h /Masi/local/SDL/SDL.h