• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode-users Digest, Vol 4, Issue 712
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Xcode-users Digest, Vol 4, Issue 712 (From: Adam <email@hidden>)

  • Prev by Date: Re: Xcode-users Digest, Vol 4, Issue 712
  • Next by Date: Re: Interpreting "undefined symbols"
  • Previous by thread: Re: Xcode-users Digest, Vol 4, Issue 712
  • Next by thread: Text Key Binding "Execute User Pipe"
  • Index(es):
    • Date
    • Thread