WPATH_FORCE() not defined on windows when compiling with msvc.
MiguelAmaro opened this issue · 0 comments
MiguelAmaro commented
I'm trying to compile on Windows (x64) using the make.bat
file found in .\mecab\mecab\src\
and had the following errors occur. I noticed that the WPATH(path)
gets preprocessed to WPATH_FORCE(path)
which is never defined. Is there a reason for this?
compiler version: MSVC 14.32.31326
feature_index.cpp(532): error C3861: 'WPATH_FORCE': identifier not found
feature_index.cpp(540): error C3861: 'WPATH_FORCE': identifier not found
feature_index.cpp(621): error C3861: 'WPATH_FORCE': identifier not found
feature_index.cpp(672): error C3861: 'WPATH_FORCE': identifier not found
Line 84 in 046fa78
#ifdef _WIN32
#ifdef __GNUC__
#define WPATH_FORCE(path) (MeCab::Utf8ToWide(path).c_str())
#define WPATH(path) (path)
#else
//Windows Path using msvc (WPATH_FORCE not defined)
//#define WPATH_FORCE(path) (path)
#define WPATH(path) WPATH_FORCE(path)
#endif
#else
#define WPATH_FORCE(path) (path)
#define WPATH(path) (path)
#endif