This project has moved and is read-only. For the latest updates, please go here.

error C2061: syntax error : identifier 'wchar_t'

May 12, 2012 at 1:58 AM

I was receiving the following compiler error: 

vld_def.h(45) : error C2061: syntax error : identifier 'wchar_t'


After searching I found

According to lochok and mloskot, including wchar.h in vld.h and vld_def.h, or simply calling #include <wchar.h> prior to #include <vld.h> fixes the issue.


I'm not sure if anyone else is having this issue or not.  I'm currently using Qt Creator 2.5.0 with Qt 4.8.1 using VC++ 2010 express.


If this is a common issue would it be possible to add a #include <wchar.h> directive to the relevant vld headers?