Arggg SDL _main undefined. Please help!

Just switched to a mac book pro, been waiting for an update in hardware and it came:-)

Now i downloaded the xcode development kit, which i was told will load most lib's i need.

Im using g++ compiler and a makefile for builds,

I downloaded the cg, sdl and sld_image frameworks and they are all installed in the root library/frameworks section

Ive downloaded the runtime and the devel-extras from the sdl site. I dont really see much in the sdl_devel-extras besides those sdlmain.h and sdlmain.m files. I attempted to include them in my project directory and in my main class with #include "SDLMain.h"
#include "SDLMain.m"

You should #include SDL.h, and you should have SDLMain.h visible by your project, and compile SLDMain.m with your project. Your main function should follow the prototype int main(int argc, char **argv) as well.

I also tried the unix install as per instructions on sdl and have no luck even with that install. I had everything working in the first 8 hours of getting my mbp except for this, now 5 days later im still fighting a loosing battle and i have a big demo for another department on thursday.

m3the01 Wrote:Question do i need to install the sdl, sdl_image and Cg frameworks in the system/library/frameworks section of the disk?

Cause right now they are only in the library/frameworks section, they are not present int he system/library/framework area.

Thanks for the help

Don't change anything in /System (except for installing kernel extensions). It isn't wrong to put SDL, SDL_image and CG in either /Library/Frameworks or ~/Library/Frameworks, but when you ship the program, it's best to put them in the bundle under Contents/Frameworks, so that your users don't have to install those frameworks themselves.