• 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: linking an embedded framework under Xcode 1.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linking an embedded framework under Xcode 1.5


  • Subject: Re: linking an embedded framework under Xcode 1.5
  • From: Thomas Lau <email@hidden>
  • Date: Mon, 9 Aug 2004 18:39:25 -0700

Hi Anders,

I have found a work-around to fix the linking error - I created another target for the embedded framework ("myEmbedded") under Xcode 1.5 and now the linking error message disappears!

This workaround leads me another question - what's the major difference for the building settings of a Carbon framework under Xcode 1.2 and 1.5? In other words, can an embedded Carbon framework target created in Xcode 1.2 have some linking issues with Xcode 1.5?

regards,
Thomas Lau
On Aug 6, 2004, at 3:10 PM, Anders Bertelrud wrote:

Hi Thomas,

Thanks for sending the link command. What is odd here is that the linker is trying to treat 'myEmbedded' as a static binary, when you are clearly trying to produce a dynamic binary (the application). (I wanted to see the link command in order to see if there was a -static or something like that being passed). Does the "-static" flag appear in any compiler or linker invocation in a full build? Do you know if KodakCMS is a normal, dynamic framework? Something is making the linker think that it should produce a static binary, and we just need to figure out what it is...

Thanks for the info,

Anders

On Aug 6, 2004, at 13.42, Thomas Lau wrote:

Hi Anders,

Thanks for your reply.  Here's the command line invocation I got:

Native Build of Target "myEmbedded Framework"

Native Build of Target "myApp"

Ld "/Users/thomaslau/project builds/products/myApp.app/Contents/MacOS/myApp"
cd /Users/thomaslau/Projects/myProjectTree
/usr/bin/g++-3.3 -o "/Users/thomaslau/project builds/products/myApp.app/Contents/MacOS/myApp" "-L/Users/thomaslau/project builds/products" "-F/Users/thomaslau/project builds/products" -filelist "/Users/thomaslau/project builds/tmp/myProject.build/myApp.build/Objects-normal/ myApp.LinkFileList" -framework myFramework1 -framework myFramework2 -framework myFramework3 -framework myFramework4 -framework myEmbedded -framework KodakCMS -arch ppc -Wl,-no_arch_warnings -framework Carbon
ld: /Users/thomaslau/project builds/products/myEmbedded.framework/myEmbedded is input for the dynamic link editor, is not relocatable by the static link editor again


Can I solve the error by changing some building options in the application's target? Thanks a lot.

Thomas Lau

On Aug 6, 2004, at 12:51 PM, Anders Bertelrud wrote:

Hello Thomas,

I haven't seen this problem in the testing of Xcode 1.5. Would you be able to email me the command line invocation of the linker? To find it, open up the the Detailed Build Results panel (the first menu item under the Build menu), select the outline view item that failed, and choose Edit->Copy. That copies the command line invocation and the output onto the pasteboard. Feel free to blot out any filename or product names that may be confidential -- I'm just interested in what the linker options are.

Thanks,

Anders Bertelrud
Xcode
Apple Computer, Inc.

On Aug 6, 2004, at 10.44, Thomas Lau wrote:

Dear all,

I have a Xcode project which cotains a Carbon application and an
embedded Carbon framework.  Before I upgrade to Xcode 1.5, I have no
problem to build the project.  With Xcode 1.5, I encountered the
following linking error message:

ld: /Users/thomaslau/project
builds/products/embedded.framework/embedded is input for the dynamic
link editor, is not relocatable by the static link editor again

which embedded.framework is the application's embedded framework.

Does anyone encounter similar linking errors after you installed Xcode
1.5? Can anyone give me some suggestion to solve it? Thanks a lot.


regards,
Thomas Lau
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: linking an embedded framework under Xcode 1.5
      • From: Anders Bertelrud <email@hidden>
References: 
 >linking an embedded framework under Xcode 1.5 (From: Thomas Lau <email@hidden>)
 >Re: linking an embedded framework under Xcode 1.5 (From: Anders Bertelrud <email@hidden>)
 >Re: linking an embedded framework under Xcode 1.5 (From: Thomas Lau <email@hidden>)
 >Re: linking an embedded framework under Xcode 1.5 (From: Anders Bertelrud <email@hidden>)

  • Prev by Date: Shark 4 bug - conditional branch links broken?
  • Next by Date: Weird toolbar button behavior in 1.5?
  • Previous by thread: Re: linking an embedded framework under Xcode 1.5
  • Next by thread: Re: linking an embedded framework under Xcode 1.5
  • Index(es):
    • Date
    • Thread