【发布时间】:2013-01-05 11:43:08
【问题描述】:
我在构建Ubuntu 时遇到错误。
错误如下:
ISO C++ forbids declaration of `wstring' with no type
为了解决这个问题,我必须自己定义wstring。
那么谁知道如何定义wstring?
【问题讨论】:
-
你应该
#include<string>并使用std::wstring -
我添加了#include
并使用了它的完全限定名std::wstring。所以,我必须定义wstring,因为我使用的gcc不支持它。所以,如何定义“wstring”?