MeCab 0.96 までの対応に加え、以下の変更が必要。
*** mecab-0.97-original/src/libmecab.cpp Mon Nov 26 02:27:12 2007 --- mecab-0.97/src/libmecab.cpp Wed Feb 13 12:23:35 2008 *************** *** 50,56 **** #if defined(_WIN32) && !defined(__CYGWIN__) HINSTANCE DllInstance = 0; ! #ifdef __cplusplus extern "C" { #endif BOOL WINAPI DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID) { --- 50,56 ---- #if defined(_WIN32) && !defined(__CYGWIN__) HINSTANCE DllInstance = 0; ! #if defined(__cplusplus) && !defined(__MINGW32__) extern "C" { #endif BOOL WINAPI DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID) { *************** *** 62,68 **** std::locale::global(loc); return TRUE; } ! #ifdef __cplusplus } #endif #endif --- 62,68 ---- std::locale::global(loc); return TRUE; } ! #if defined(__cplusplus) && !defined(__MINGW32__) } #endif #endif