cwalls251 / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

wchar support in toolchain where native libstdc++ doesn't ? #123

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile http://pastebin.ca/899561 with arm-apple-darwin-g++
2. Run on the iPhone

What is the expected output? What do you see instead?

I see : (http://nopaste.com/p/alJ1danpX)

String str1: TEST
String str2: TEST
Operation: (str1 == str2)
Strings str1 & str2 are equal.
dyld: lazy symbol binding failed: Symbol not found:
__ZNSbIwSt11char_traitsIwESaIwEEC1EPKwRKS1_
  Referenced from: /Applications/wchar
  Expected in: /usr/lib/libstdc++.6.dylib

dyld: Symbol not found: __ZNSbIwSt11char_traitsIwESaIwEEC1EPKwRKS1_
  Referenced from: /Applications/wchar
  Expected in: /usr/lib/libstdc++.6.dylib

zsh: trace trap  /Applications/wchar

What version of the product are you using? On what operating system?
Latest toolchain, Leopard 10.5.1

Please provide any additional information below.

Looks like the native libstdc++ on the iPhone doesn't have any wchar
support, where the toolchain has it. Any program using wchar will fail
because lazy bindings failed to resolve some symbols.

Original issue reported on code.google.com by b0n...@gmail.com on 11 Feb 2008 at 6:30

GoogleCodeExporter commented 8 years ago
Correctamundo. Now that I've been given owner status, I have added the --enable-
wchar_t=no fix to the Wiki.

Original comment by saurik on 11 Mar 2008 at 8:51