Re: gcc c++ vs. visual c++ info?
Re: gcc c++ vs. visual c++ info?
- Subject: Re: gcc c++ vs. visual c++ info?
- From: Dirk Stegemann <email@hidden>
- Date: Mon, 24 Jan 2005 03:11:36 +0100
Hi,
Am 24.01.2005 um 02:43 schrieb Thomas Dibble:
On Jan 23, 2005, at 6:31 AM, Dirk Stegemann wrote:
I localized the crashes so far as they seem to occur in the
constructors of some standard-c-library functions, especially
"ifstream" and "ofstream".
Are there known issues with using these classes?
Are you using 10.2 SDKs? If so, you will need to include the gcc c++
header paths for those SDKs to the command line. If you don't, then
practically all c++ stream classes will send a SIGBUS the first time
they are used when the optimization level is above "0". In other
words, exactly what you're describing.
Specifically, this is what I had to add to my command line (via the
XCode Header Search Paths setting) which corrected the crashing
completely:
-I/Developer/SDKs/MacOSX10.2.8.sdk/usr/include/gcc/darwin/3.3
-I/Developer/SDKs/MacOSX10.2.8.sdk/usr/include/gcc/darwin/3.3/c++
-I/Developer/SDKs/MacOSX10.2.8.sdk/usr/include/gcc/darwin/3.3/c++/ppc-
darwin
-I/Developer/SDKs/MacOSX10.2.8.sdk/usr/include/gcc/darwin/3.3/c++/
backward -I/Developer/SDKs/MacOSX10.2.8.sdk/usr/include
Indeed I'm building the products using the 10.2 SDK, to be able to run
the binaries on that version of Mac OS X.
Thanks a lot for pointing out this issue; I'll see if I can make this
work properly now with the knowledge provided by you.
Is this documented anywhere else, btw?
Regards,
Dirk Stegemann
_______________________________________________
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