libstdc++ cross development issue with the 10.2.7 SDK
libstdc++ cross development issue with the 10.2.7 SDK
- Subject: libstdc++ cross development issue with the 10.2.7 SDK
- From: Christopher Hunt <email@hidden>
- Date: Tue, 2 Mar 2004 18:32:59 +1100
Hi there,
I've have a libstdc++ issue cross developing with 10.2.7 SDK.
Given xcode 1.1, a standard "C++ Tool" project, cross development for
10.2 settings and the following main.cpp:
#include <fstream>
int main (int argc, char * const argv[]) {
std::ifstream theStream;
return 0;
}
I get an illegal instruction when running the executable via a
deployment build style.
The development build style's executable works fine given zero link.
Additionally if I use the 10.3 SDK the deployment build style's
executable runs fine. I presume that there was a bug in libstdc++
concerning the construction of an iostream circa 10.2.
I see that libstdc++.a is statically linked with my xcode project, and
that 'cause I'm cross developing with 10.2, I'm getting 10.2's
libstdc++.a file.
(i) am I on the right tack - I'm a little confused given that the doco
states that static libs should not be sourced from anywhere other than
the current SDK;
(ii) have I found a bug in xcode 1.1; and
(iii) is there any way I can cross develop for 10.2, but use the gcc
libraries of 10.3? I'd like to be able to express this requirement as
an xcode project build setting rather than move files around on my
machine.
Thanks for any help.
Kind regards,
Christopher
--
When traveling let your family, friends and colleagues know where you
are:
http://www.mytimetraveler.com/
_______________________________________________
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.