Re: ld: undefined symbol _main (but a main does exist)
Re: ld: undefined symbol _main (but a main does exist)
- Subject: Re: ld: undefined symbol _main (but a main does exist)
- From: Andreas Monitzer <email@hidden>
- Date: Mon, 8 Jul 2002 15:27:11 +0200
On Monday, July 8, 2002, at 09:45 , Lukas Westermann wrote:
oke, as i mentoied in the subject `ld` will always
close with `ld failed, undefined symbol _main`, but
a main does 200% exist (i'm a newbee but not such a
newbee). This problem is only if i'm using the SDL-Framework.
Finally on a Linux-Mac with gcc3 it will works perfectly...
Do I need gcc3 or does SDL have some bugs ?
Somewhere in the SDL headers there's a "#define main SDLmain" (or
something similar). The problem is that the SDL lib doesn't include any
main itself (which would call SDLmain), or that main doesn't work
somehow, I can't remember right now.
I didn't get it to work myself, and I wouldn't call me a newbie at all.
On the other hand, I didn't really play around more than one or two
hours.
andy
--
DigiTunnel 1.0 released, offering full PPTP-support for Mac OS X!
http://www.gracion.com/vpn/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.