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: Anders Bertelrud <email@hidden>
- Date: Tue, 10 Aug 2004 10:23:32 -0700
Hello Thomas,
There should be no such issues at all. It is possible that there have
been bugfixes in the linker that have changed the semantics, but these
results are surprising -- a framework built by Xcode 1.2 should be
completely compatible with one built under 1.5. I'll ask somebody here
at Apple to try to reproduce the problem.
By the way -- do any of the frameworks export C++ API? I don't think
that would be an issue between two different releases of the GCC 3.3
compiler, but I suppose there may be subtle differences due to bugs.
But that would be an interesting clue.
Anders
On Aug 9, 2004, at 18.39, Thomas Lau wrote:
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.