Re: Xcode-users Digest, Vol 4, Issue 712
Re: Xcode-users Digest, Vol 4, Issue 712
- Subject: Re: Xcode-users Digest, Vol 4, Issue 712
- From: Jonas Maebe <email@hidden>
- Date: Mon, 17 Dec 2007 00:15:27 +0100
On 16 Dec 2007, at 23:57, Adam wrote:
On Dec 15, 2007, at 2:32 PM, James W. Walker wrote:
As I recall, SDL #defines main to SDL_main and then supplies their
own
SDLMain.m or something that has the true main function that after
some
setup calls SDL_main (i.e., your main). You are most likely not
including SDLMain.m in your project. Looking at your .xcodeproj, you
aren't. Click the box to include the file.
Yes, and it still gives the same errors, and it would define 2
"main()"s, seeing that mine has one also. I seem to remember needing
those files for something, but what?
You have to include SDL_main.h in the file containing your main
(that's the one with the macro to rename your main to SDL_main). It's
needed because the SDLMain.m has to setup the window and event loop
before your code can start.
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden