There are four things you have to do to get SDL working with Eclipse on Mac OS X in addition to what I outlined in my SDL tutorial. First, you must copy the files SDLMain.h and SDLMain.m to the same directory as your SDL program. My interpretation of this statement is if you create an Eclipse project and add your source code files to the project folder, you must also add SDLMain.h and SDLMain.m to the project folder.
Second, you must add the directory where your SDL headers reside to the Directories setting for the GCC C++ compiler. Your headers most likely reside in the following directory:
Third, you must add linker flags for the Cocoa and SDL frameworks as well as the path to the SDLMain.m file.
Fourth, you must change the following line of code in SDLMain.m:
to the following:
Put less than and greater than signs around the SDL/SDL.h. For some reason I can't get those characters to show up in the blog.