[SDL] XCode link error SDL_main (SDL 1.3)

Jeroen Clarysse jeroen.clarysse at telenet.be
Tue Sep 9 07:02:14 PDT 2008


	
I know this is supposed to be in the faq, but I can't get it to work  
at all... even the samples in /SDL-1.3/XCode/TemplatesForXcode/ don't  
work :-(

i keep getting the duplicate symbol error :

duplicate symbol _main in /Users/jeroen/SDL-1.3/Xcode/ 
TemplatesForXcode/SDL Cocoa Application/build/SDLCocoaApp.build/ 
Debug/«PROJECTNAME».build/Objects-normal/i386/main.o and /Users/jeroen/ 
SDL-1.3/Xcode/TemplatesForXcode/SDL Cocoa Application/build/ 
SDLCocoaApp.build/Debug/«PROJECTNAME».build/Objects-normal/i386/ 
SDLMain.o


can anyone give me a hint on this ? I noticed that both SDLmain.m and  
main.c have a main routine, so I tried commenting out one of them, but  
in both cases that results in a link error with _SDL_main not found..

i'm totally stuck here :-(


More information about the SDL mailing list