Re: Missing libstdc++ symlink in the 10.6 SDK from Xcode 4.3?
Re: Missing libstdc++ symlink in the 10.6 SDK from Xcode 4.3?
- Subject: Re: Missing libstdc++ symlink in the 10.6 SDK from Xcode 4.3?
- From: Andreas Grosam <email@hidden>
- Date: Wed, 29 Feb 2012 13:31:19 +0100
On Feb 29, 2012, at 9:43 AM, Jamie Kirkpatrick wrote:
> Here's the output from the two compilers on my system:
>
> jkp@143 [09:41:23] [~]
> -> % clang++ -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -print-search-dirs
You shouldn't pass -syslibroot, but rather -sysroot to the compiler (to either gcc or clang). Nonetheless, the result doesn't look better then.
The compiler driver would evaluate the correct settings when passing -sysroot to the underlaying tools like ld and libtool. -syslibroot is for the linker only, if I'm not wrong.
In order to gather more info:
ld used to have a flag -t which "Logs each file (object, archive, or dylib) the linker loads. Useful for debugging problems with search paths where the wrong library is loaded."
However, so far I had no luck to pass the -t flag to ld. (tried: -Xlinker -t, -Wl,-t, …). So, still I'm not able to figure out which library search paths are used when linking.
Andreas
_______________________________________________
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