vs2010 編譯時 wcstok_s 未定義 解決方案

Error    21    error C3861: 'wcstok_s': identifier not found    D:\Microsoft Visual Studio 10.0\VC\include\tchar.h    794
 

今天在編譯nodepad++ 一個插件的時候編譯的時候竟然出現上面的一個錯誤,找了很久都沒有辦法解決。

LocationNavigate.cpp

#include "PluginDefinition.h"
#include <shlwapi.h>
#include <tchar.h>  //就是這裏報錯了
#include "LNhistoryDlg.h"
#include <list>
#include<WinBase.h>

 

修改一下包含的順序就可以解決了

#include <tchar.h>  

#include "PluginDefinition.h"
#include <shlwapi.h>
#include "LNhistoryDlg.h"
#include <list>
#include<WinBase.h>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章