Re: Xcode 2.5 and gcc 3 links against libstdC++6.dylib on 10.5 (fails on 10.2.8)
Re: Xcode 2.5 and gcc 3 links against libstdC++6.dylib on 10.5 (fails on 10.2.8)
- Subject: Re: Xcode 2.5 and gcc 3 links against libstdC++6.dylib on 10.5 (fails on 10.2.8)
- From: John Pattenden <email@hidden>
- Date: Wed, 28 Nov 2007 22:04:45 -0500
Ok so I have been trying and almost succeeding in getting Xcode to build an app on 10.5 that will run back to 10.2.8
After installing Xcode 2.5 and gcc 3.3 I can get a pure Objective C app to run fine on 10.2.8
but other apps that mix C++ and Obj C are failing with the message that is can't open libstdC++6.dylib
is there a way to set the version it need to weak link against to be compatible with the version installed in 10.2.8?
Doesn't 10.2.8 need a statically linked C++ library? Or am I mis-remembering?
> You are linking to a static library on Panther that expects Panther dylibs that aren't present on a Jaguar system. > The references are coming from the static library you're linking with, not from your code.
Yeah I pretty much gathered that, I just need to figure out how to build something in Xcode 2.5 on 10.5 that will use / reference an earlier version of the C++ library that will work on 10.2.8 - Previously compiling with GCC 3.3 on 10.4 worked fine for me.. I guess I need to do some more digging...
A snippet I found..
"In versions of Mac OS X prior to version 10.3.9, the standard C++ library is packaged as the static archive file libstdc++.a. Beginning with Mac OS X version 10.3.9, the standard C++ library is packaged as the dynamic shared library libstdc++.dylib. The change in packaging brings the C++ runtime in line with the C runtime, which has always been packaged as part of the dynamic shared library libSystem.dylib. Note: To build programs that link to libstdc++.dylib, you must have GCC 4.0, which is provided with the Xcode Tools in Mac OS X 10.4. You use this compiler along with the SDKs provided by Apple to build your binary for 10.3.9. For more information, see “Deploying Applications Using libstdc++.dylib” (page 9). "
-john |
_______________________________________________
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