ho risolto. ho linkato il file header tchar.h