0
工作,我有這樣的代碼:與WCHAR用C
#include <stdio.h>
#include <wchar.h>
int main()
{
wchar_t *foo = L"ðħ";
wprintf(L"[%ls]\n", foo); return 0;
}
當我編譯它,它給我的implicit declaration of function ‘wprintf’
警告。我知道我應該在編譯期間鏈接wchar庫,但我該怎麼做?
您使用的編譯器是什麼? – 2010-06-03 21:04:45
他的問題被標記爲GCC。 – Puppy 2010-06-03 21:09:07
我想馬特想知道什麼版本的GCC。 – jmucchiello 2010-06-03 21:16:01