Re: Using STL strings and supporting 10.2.x
Re: Using STL strings and supporting 10.2.x
- Subject: Re: Using STL strings and supporting 10.2.x
- From: Mark Thomas <email@hidden>
- Date: Mon, 21 Apr 2008 21:10:45 +0100
- Thread-topic: Using STL strings and supporting 10.2.x
>>
>> Is there anyway I can use the info from
>>
>> http://developer.apple.com/technotes/tn2002/tn2064.html
>>
>> here to define the wchar functions as weaked linked ?
>
> No, the problem is that before 10.3.9, the standard C++ library was
> only available on the Mac as a static library.
>
> --
ok, something might not be adding up at the minute as
While I have noticed some definite change in standard libraries, over the
OS releases I'm not 100% on above statement, as I managed to change all my
existing references into libSystem, to weak link reference (I appreciate the
performance hit, but this is not an issue here as only doing this on a
single dylib within the .app).
I did this by switching off the standard libraries via '-nostdlib' and
adding in the same libraries as gcc did before but instead of -lSystem, did
-weak_framework System which then all linked in OK. (infact system framework
does just symbolic link's over to /usr/lib, so it's exactly the same library
which get's used in the end)
I then compared 'nm -mg <dylib>' outputs, to see what the over the effects
where, and all the same references are there, but now marked as weak links
instead hard ones. (I have put in OTHER_LDFLAGS_ppc and OTHER_LDFLAGS_i386,
so its only effects the ppc version which has this capability).
So apart from different dylib linker loading flags, I would have thought
this should all work fine and does on my development machine, although I
need to give this to the testers to see how what happens when they do an OS
Matrix test.
Thanks
Mark.
_______________________________________________
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