Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib
Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib
- Subject: Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib
- From: Chris Espinosa <email@hidden>
- Date: Thu, 10 Apr 2008 09:10:16 -0700
On Apr 10, 2008, at 2:41 AM, Martin Baumgärtner wrote:
building a bundle (an Xtension for Quark XPress) with *XCode 3.0* on
an Intel Mac (OS X v10.5.2, GCC 4.0.1) I got the following linker
error:
/Linking [...]
/
/ -init can only be used with -dynamiclib/
/ Command /Developer/usr/bin/g++-4.0 failed with exit code 1/
/Build failed (1 error)/
It would be more helpful to see the entire Linker invocation, that is,
drag and drop the line that says "Linking" rather than retyping it.
Also, choose Project > Edit Target Settings, click the Build tab, and
type "init" into the search field. You'll see the Linker
Initialization Routine build setting, which is where the "-init" is
coming from. If you feel you need to switch it off, that's where to
do it. But I think that's barking up the wrong tree: the problem may
be that the product type somehow got switched away from being a
dynamic library, which is sort of important in order to be a Quark
extension. Make sure that "Mach-O Type" is set to "Dynamic Library".
Chris _______________________________________________
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