• 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
Link-Error XCode 3.0: -init can only be used with -dynamiclib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Link-Error XCode 3.0: -init can only be used with -dynamiclib


  • Subject: Link-Error XCode 3.0: -init can only be used with -dynamiclib
  • From: Martin Baumgärtner <email@hidden>
  • Date: Thu, 10 Apr 2008 11:41:11 +0200

Hello all,

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)/

The project was originally imported from CodeWarrior to *XCode 2.4.1*. Amazingly the whole thing worked without any problems under *XCode 2.4.1* on an Intel Mac (OS X v10.4.11, GCC 4.0.1).

On the gcc man page I found the parameter "-init" together with "-bundle" and "-dynamiclib" as three of many "Darwin Options". It seems to me that I need to switch off the parameter "-init" somehow. Unfortunately I don?t have any idea how to do this. Or is this a wrong kind of an approach? Any (better) idea? Like I already mentioned: under *XCode 2.4.1* the bundle could be built without problems.

Thanks in advance for any useful hint!

Martin
_______________________________________________
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


  • Follow-Ups:
    • Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Ok, now how do I _stop_ running Leaks?
  • Next by Date: thin linking: "file is not of required architecture"
  • Previous by thread: Re: Ok, now how do I _stop_ running Leaks?
  • Next by thread: Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib
  • Index(es):
    • Date
    • Thread