#include <stdio.h>
#include <wchar.h>
int main(int argc, char *argv[])
{
wprintf(L"test %s %s %s\n",L"one",L"two",L"three");
return 0;
}
上面这段,MSVC执行正常:
test one two three
但在linux下gcc编译执行却不对:
test o t t
且编译还会抛一个警告:
警告:隐式声明函数 ‘wprintf’
如何解决这个问题?
