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: Lukas Westermann <email@hidden>
- Date: Mon, 08 Jul 2002 10:24:42 +0200
- Organization: AdNovum
Cameron Hayne wrote:
On Monday, July 8, 2002, at 03:45 am, 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...
It's not likely related to the framework. This error almost always means
that you haven't told 'ld' where to find your main(). Eg. if main() is
in a separate file, you might have omitted to tell gcc to compile it and
ld to link it in. Do you use a different makefile for OS X than for
Linux? Or are you using Project Builder in OS X?
... Cameron
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
I have created a new PB-Project
--
+---------------------------------------------------------------------+
Lukas Westermann
mailto:email@hidden
AdNovum Informatik AG
http://www.adnovum.ch phone: +41 (1) 272 6111
Roentgenstrasse 22, CH-8005 Zuerich fax: +41 (1) 272 6312
+---------------------------------------------------------------------+
AdNovum Software Inc. San Mateo, CA 94404 phone: +1 (650) 525 9322
1400 Fashion Island Boulevard, Suite 309 fax: +1 (650) 525 9324
+---------------------------------------------------------------------+
_______________________________________________
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.