Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPATH_FORCE() not defined on windows when compiling with msvc. #67

Open
MiguelAmaro opened this issue Jun 9, 2022 · 0 comments
Open

Comments

@MiguelAmaro
Copy link

MiguelAmaro commented Jun 9, 2022

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

#ifdef _WIN32

#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant