Re: linking an embedded framework under Xcode 1.5
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 14:44:32 -0700
Hi Anders,
Thanks for your reply and help. I have cleared all targets inside the
project and recompiled the embedded framework and application (i.e. a
full build). I can't find any "-static" flag within the full build's
compiler and linker invocation.
From what I understood, KodakCMS is a normal Mach-O framework. I have
no problem to link this framework with Xcode 1.2.
Can I set any building flag in the target properties so I can "force"
the linker to link the embedded as dynamic binary?
Thanks!
regards,
Thomas
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.