Dav*_*son 1 c unicode command-line
GCC是否支持Microsoft等效的wmain()?我正在编写C程序,需要在整个过程中使用Unicode.如果没有,char可以转换为wchar_t吗?
您不需要wchar_tUnicode.您可以使用Unicode char的utf-8编码.另外,wchar_t可以是不同的尺寸.在Windows上,它是16位,但在许多Linux/Unix平台上它是32位.
有关GCC的更多信息,请参阅我通过Google搜索找到的这篇文章:
http://article.gmane.org/gmane.comp.gnu.mingw.user/22962
(据此,你对GCC支持的问题的回答wmain是"不".)