Re: Zerolink and undefined symbol _main
Re: Zerolink and undefined symbol _main
- Subject: Re: Zerolink and undefined symbol _main
- From: Fritz Anderson <email@hidden>
- Date: Sun, 12 Jun 2005 00:53:17 -0500
On 11 Jun 2005, at 11:25 PM, Brad Peterson wrote:
I'm trying to build a framework with the zerolink
turned off, and I get the following error:
/usr/bin/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status
I should point out that with zerolink on, everything
builds just fine.
While the framework does use a few .a files, there are
no other dependencies, certainly not any other xcode
projects which would be built with zerolink on.
Targets that "build fine with ZeroLink on" are building fine because
there is zero linkage phase, and hence there is no check for
undefined symbols. It's like saying you never find you drive too fast
when the speedometer is taped-over.
Observe the symbol the linker wants: _main. That's a C function,
named main. Your target seems to think it is not a framework, but an
application or a tool. What's the Wrapper Extension setting say?
-- F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden