[Home]Memo/MeCab

Amatubu_Wiki | Memo | RecentChanges | Preferences

Showing revision 2

MinGW で MeCab をビルドする

MeCab 0.96

MeCab 0.97

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

Amatubu_Wiki | Memo | RecentChanges | Preferences
This page is read-only | View other revisions | View current revision
Edited February 13, 2008 12:30 by Amatubu (diff)
Search:

Copyright (c) 1996-2019 naoki iimura e-mail