• 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: Fri, 11 Apr 2008 11:31:03 -0700


On Apr 11, 2008, at 11:00 AM, Martin Baumgärtner wrote:
the first thing I tried was setting the parameter [Mach-O Type] to *Dynamic  Library*, but then QuarkXPress 7.31 crashes on startup.

I always felt to be on the right side supposing that a QuarkXPress XTension has to be a *Bundle*, and not a *Dynamic Library* (or am I wrong?). In my project settings there hasn't ever been any Mach-O Type set EXPLICITLY to any of the selectable types, but it always worked. It's important to notice that the use of exactly the same project file(s) for both versions of Xcode, linking has never been a problem to v2.4.1 but only to v3.0.

I hope that the following details can help to bring some light into the dark.

Thanks in advance,

Martin

P.S.: My last message was possibly too large and might have been lost because I attached the rather verbose QuarkXPress crash log.

-------------------------------------------------------------------------------------
Here is the (copied) linker error adjacent to my first posting:
-------------------------------------------------------------------------------------

    cd /develop/version.31/src/FILTERS/XGate/XGateSrc/Depot/XG30/Mak/MWERKS
    /Developer/usr/bin/g++-4.0 -o "/develop/version.31/src/FILTERS/XGate/XGateSrc/Depot/XG30/Mak/MWERKS/build/Imported CodeWarrior Settings/X-Gate 70 Mac Euro.xnt/Contents/MacOS/X-Gate 70 Mac Euro" "-L/develop/version.31/src/FILTERS/XGate/XGateSrc/Depot/XG30/Mak/MWERKS/build/Imported CodeWarrior Settings" -L../../../QuarkSDK/XDK7.2/XTHeaders -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib "-F/develop/version.31/src/FILTERS/XGate/XGateSrc/Depot/XG30/Mak/MWERKS/build/Imported CodeWarrior Settings" -filelist "/develop/version.31/src/FILTERS/XGate/XGateSrc/Depot/XG30/Mak/MWERKS/build/X-Gate 70 MAC.build/Imported CodeWarrior Settings/Passport Mach-O Debug.build/Objects-normal/i386/X-Gate 70 Mac Euro.LinkFileList" -framework Carbon -framework CoreFoundation -lXP_XTEMAC7.XC -arch i386 -init _XTActivateCallback -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
ld: -init can only be used with -dynamiclib
collect2: ld returned 1 exit status


I don't see any directive in there to the Linker to tell it to build a particular type of library, so it's defaulting to static archive, for which -init is invalid.  

Somehow you need to tell Xcode that you're building a bundle, plugin, or dylib. 

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: 
 >Re: Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib (From: Martin Baumgärtner <email@hidden>)

  • Prev by Date: Re: A few class model questions
  • Next by Date: namespaces and code browsing
  • Previous by thread: Re: Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib
  • Next by thread: Re: Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib
  • Index(es):
    • Date
    • Thread