Re: Zerolink and undefined symbol _main
Re: Zerolink and undefined symbol _main
- Subject: Re: Zerolink and undefined symbol _main
- From: Brad Peterson <email@hidden>
- Date: Sun, 12 Jun 2005 11:25:23 -0700 (PDT)
Hi,
Fair enough... the Wrapper Extension is definitely set
to framework, though.
In further experimentation, what seems to make a
difference is setting the library style to dynamic
instead of static. So, yay!, it builds, but I'm not
sure I understand the mechanics of why.
Can you enlighten me?
Thanks!
--- Fritz Anderson <email@hidden> wrote:
> 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 You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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