• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Link-Error XCode 3.0: -init can only be used with -dynamiclib (From: Martin Baumgärtner <email@hidden>)

  • Prev by Date: Re: thin linking: "file is not of required architecture"
  • Next by Date: Relative user path problem
  • Previous by thread: Link-Error XCode 3.0: -init can only be used with -dynamiclib
  • Next by thread: Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib
  • Index(es):
    • Date
    • Thread