Re: Warning with NEXT_ROOT environment and libgcc.a
Re: Warning with NEXT_ROOT environment and libgcc.a
- Subject: Re: Warning with NEXT_ROOT environment and libgcc.a
- From: Fritz Anderson <email@hidden>
- Date: Mon, 30 Jan 2006 08:41:29 -0600
On 30 Jan 2006, at 5:26 AM, Conor Dearden wrote:
Another tack: Check the target's build settings, and see if the
10.3.9 SDK (or a descendant thereof) is in the Library Search Paths
setting.
Thank you. It happened to be in the targets Library Search Paths:
"$(SYSTEM_DEVELOPER_DIR)/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/powerpc-
apple-dar
win7/4.0.0", I had been looking at the projects build settings.
I am not sure what that library does,
libgcc is glue for built-in functions and helpers the compiler calls
in generated code. Things like long long arithmetic on 32-bit
systems. It's included automatically by the compiler, and should not
be added to your project.
I simply removed the line and the
project compiles without warning now and runs. The documentation
doesn't
mention that I can set this setting per architecture variant,
Library Search
Paths_ppc and _i386. So is it correct to assume it's okay to remove
the line
entirely and Xcode finds the libraries in the default sdk?
SDKROOT can be used in architecture-specific variants. Intel builds
MUST use 10.4u, but you may want a different setting for PowerPC to
support earlier releases of the OS.
The "default SDK" you allude to would be set in the General tab of
the info window for the project ("Cross-Develop Using Target SDK:").
If that's set to "Current Mac OS," Xcode will use libraries from /
System/Library/Frameworks and /usr/lib, and not any of the SDKs --
but that would be incorrect for Intel builds on a PowerPC, because
those libraries are PPC-only.
If you're satisfied with it for both Intel and PowerPC, set the
project SDK to 10.4u. It's right for Intel, and the SDK is more
stable than whatever is in your .../Frameworks and /usr/lib
directories. Otherwise set SDKROOT_ppc.
-- F
--
Fritz Anderson -- http://www.manoverboard.org/
Consulting Programmer -- http://resume.manoverboard.org/
Step into Xcode, coming out late January -- http://six.manoverboard.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden