Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mystery link warnings between System.framework and libmx.dylib



I am getting the same symptom here when I use the 10.4u SDK, but adding -lSystem doesn't seem to cure it. This seems to happen on at least two distinct and recent versions of Xcode 2.2.

My linker output looks like this (names changed to protect the innocent):

Ld "/Users/ladd/Code/CPS/foo/bar/trunk/bax/build/Development/foo bar.app/Contents/MacOS/foo bar" normal ppc
cd /Users/ladd/Code/CPS/foo/bar/trunk/bax
/usr/bin/g++-4.0 -o /Users/ladd/Code/CPS/foo/bar/trunk/bax/build/ Development/foo\ bar.app/Contents/MacOS/foo\ bar -L/Users/ladd/Code/ CPS/foo/bar/trunk/bax/build/Development -F/Users/ladd/Code/CPS/foo/ bar/trunk/bax/build/Development -filelist /Users/ladd/Code/CPS/foo/ bar/trunk/bax/build/bax.build/Development/bax.build/Objects-normal/ ppc/foo\ bar.LinkFileList -framework fooPreferences -framework Cocoa - framework AddressBook -framework Carbon -framework CoreFoundation - framework PreferencePanes -framework QuickTime -framework WebKit - framework SystemConfiguration -lkakadu -lnetlib -lxmlcore -lfooCrypt - lfooFoundation -arch ppc -prebind -mmacosx-version-min=10.3 -lcrypto - lpcre-foo -lSystem -isysroot /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: warning multiple definitions of symbol _atan2f
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- darwin8/4.0.1/../../../libSystem.dylib(floating.o) definition of _atan2f
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple- darwin8/4.0.1/../../../libmx.dylib(single module) definition of _atan2f


(and so on, for most/all of the float-based trig functions)

Any other ideas?

- Ladd

On Oct 24, 2005, at 4:57 PM, Andrew Pontious wrote:

On Oct 13, 2005, at 10:19 AM, Sean McBride wrote:

I have these mystery link warnings:

/usr/bin/ld: warning multiple definitions of symbol _atan2f
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
System.framework/System(floating.o) definition of _atan2f
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-
darwin8/4.0.1/../../../libmx.dylib(single module) definition of _atan2f


and 28 others just like it: sinf, asinf, etc.

Any ideas how to get rid of them, or what's causing them?  Neither
System.framework nor libmx.dylib are in my project so it's something
xCode is doing automagically, which makes it hard to troubleshoot.
[snip]

Did you ever get an answer to this?

I saw this problem recently in a home project I was working on. I also don't include System.framework or libmx is my project. I link only against Cocoa.framework.

I searched all of Apple's lists for a fix. Have a look at: http:// lists.apple.com/archives/cocoa-dev/2005/May/msg00470.html

By applying the fix from the above link -- adding -lSystem to my Other Linker Flags build setting -- I was able to make these warnings go away.

Hope that helps,

-- Andrew Pontious
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/ladd% 40criticalpath.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.