Re: CodeWarrior to XCode
Re: CodeWarrior to XCode
- Subject: Re: CodeWarrior to XCode
- From: tyler <email@hidden>
- Date: Sat, 4 Sep 2004 20:32:46 -0700
On Aug 26, 2004, at 11:54 PM, Eric Albert wrote:
You may want to investigate GCC's -fshort-wchar switch. When it's
turned on, wchar_t is 2 bytes rather than 4. The catch is that, as
with any switch that changes the size of a standard type, it isn't
ABI-compatible. If you enable this, you shouldn't use any system APIs
that use wchar_ts. Fortunately, very few do. You're only likely to
run into them in the STL, and you can work around the problem there by
building your own copy of the STL that's compiled with -fshort-wchar.
Eric,
This is very helpful information. Thanks for posting it. I encourage
you to get this into the "Switching from XCode to CodeWarrior" document
on the ADC site:
http://developer.apple.com/tools/switchtoxcode.html
or perhaps
http://developer.apple.com/documentation/DeveloperTools/Conceptual/
MovingProjectsToXcode/index.html
would be more appropriate since it has the details of the process...
Information on how to build our "own copy of the STL that's compiled
with -fshort-wchar" (as a static library?) might be a good addition to
this note as well since that might not be obvious to everyone.
Also - as others have noted, the lack of wchar supported library in
10.2 is a show-stopper for us moving to XCode for one of our very large
cross-platform products. I'd really like to see apple provide a
version of the wchar support library for 10.2 as a redistributable
library we can install with our application (or go ahead and put it on
every machine with software update - even better! :-). This would
allow us to move to XCode a year or two earlier (since apple charges
for the 10.2->10.3 upgrade we cannot require customers to make this
upgrade and have to support 10.2 at least).
thanks again,
tyler
_______________________________________________
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.