Error compiling hunspell on Visual Studio 2k8

Help
2009-01-16
2013-06-03
  • Juliano  Nunes
    Juliano Nunes
    2009-01-16

    I'm getting the following error messages when trying to compile hunspell on Visual Studio 2008. I need to compile it as a DLL so I can use it on my C# project. Any tips?

    Here is the messages I got:

    Error    51    error LNK2019: unresolved external symbol "public: __thiscall RepList::~RepList(void)" (??1RepList@@QAE@XZ) referenced in function "public: void * __thiscall RepList::`scalar deleting destructor'(unsigned int)" (??_GRepList@@QAEPAXI@Z)    affixmgr.obj    libhunspell

    Error    75    error LNK2019: unresolved external symbol "char * __cdecl get_casechars(char const *)" (?get_casechars@@YAPADPBD@Z) referenced in function "class TextParser * __cdecl get_parser(int,char *,class Hunspell *)" (?get_parser@@YAPAVTextParser@@HPADPAVHunspell@@@Z)    hunspell.obj    hunspell

     
    • Hans Meier
      Hans Meier
      2009-02-12

      Same problem, i'm using VS2005...

       
    • Hans Meier
      Hans Meier
      2009-02-13

      Fehler    58    error LNK2019: unresolved external symbol "public: __thiscall RepList::~RepList(void)" (??1RepList@@QAE@XZ) referenced in function "public: void * __thiscall RepList::`scalar deleting destructor'(unsigned int)" (??_GRepList@@QAEPAXI@Z)    affixmgr.obj   
      Fehler    59    error LNK2019: unresolved external symbol "public: int __thiscall RepList::add(char *,char *)" (?add@RepList@@QAEHPAD0@Z) referenced in function "private: int __thiscall AffixMgr::parse_convtable(char *,class FileMgr *,class RepList * *,char const *)" (?parse_convtable@AffixMgr@@AAEHPADPAVFileMgr@@PAPAVRepList@@PBD@Z)    affixmgr.obj   
      Fehler    60    error LNK2019: unresolved external symbol "public: __thiscall RepList::RepList(int)" (??0RepList@@QAE@H@Z) referenced in function "private: int __thiscall AffixMgr::parse_convtable(char *,class FileMgr *,class RepList * *,char const *)" (?parse_convtable@AffixMgr@@AAEHPADPAVFileMgr@@PAPAVRepList@@PBD@Z)    affixmgr.obj   
      Fehler    61    error LNK2019: unresolved external symbol "public: int __thiscall RepList::conv(char const *,char *)" (?conv@RepList@@QAEHPBDPAD@Z) referenced in function "public: int __thiscall Hunspell::spell(char const *,int *,char * *)" (?spell@Hunspell@@QAEHPBDPAHPAPAD@Z)    hunspell.obj   
      Fehler    62    fatal error LNK1120: 4 unresolved externals    S:\Visual Studio 2005\Projects\Hunspell\win_api\Debug_dll\libhunspell\libhunspell.dll   
      Fehler    82    error LNK2019: unresolved external symbol "int __cdecl flag_bsearch(unsigned short * const,unsigned short,int)" (?flag_bsearch@@YAHQAGGH@Z) referenced in function "public: int __thiscall TextParser::is_wordchar(char *)" (?is_wordchar@TextParser@@QAEHPAD@Z)    textparser.obj   
      Fehler    83    error LNK2019: unresolved external symbol "int __cdecl unicodeisalpha(unsigned short)" (?unicodeisalpha@@YAHG@Z) referenced in function "public: int __thiscall TextParser::is_wordchar(char *)" (?is_wordchar@TextParser@@QAEHPAD@Z)    textparser.obj   
      Fehler    84    error LNK2019: unresolved external symbol "int __cdecl u8_u16(struct w_char *,int,char const *)" (?u8_u16@@YAHPAUw_char@@HPBD@Z) referenced in function "public: int __thiscall TextParser::is_wordchar(char *)" (?is_wordchar@TextParser@@QAEHPAD@Z)    textparser.obj   
      Fehler    85    error LNK2019: unresolved external symbol "char * __cdecl mystrdup(char const *)" (?mystrdup@@YAPADPBD@Z) referenced in function "public: char * __thiscall TextParser::get_prevline(int)" (?get_prevline@TextParser@@QAEPADH@Z)    textparser.obj   
      Fehler    86    fatal error LNK1120: 4 unresolved externals    S:\Visual Studio 2005\Projects\Hunspell\win_api\Debug\testparser\testparser.exe   
      Fehler    87    error LNK2019: unresolved external symbol "char * __cdecl get_casechars(char const *)" (?get_casechars@@YAPADPBD@Z) referenced in function "class TextParser * __cdecl get_parser(int,char *,class Hunspell *)" (?get_parser@@YAPAVTextParser@@HPADPAVHunspell@@@Z)    hunspell.obj   
      Fehler    88    error LNK2019: unresolved external symbol "char * __cdecl mystrdup(char const *)" (?mystrdup@@YAPADPBD@Z) referenced in function "void __cdecl pipe_interface(class Hunspell * *,int,struct _iobuf *)" (?pipe_interface@@YAXPAPAVHunspell@@HPAU_iobuf@@@Z)    hunspell.obj   
      Fehler    89    error LNK2001: unresolved external symbol "char * __cdecl mystrdup(char const *)" (?mystrdup@@YAPADPBD@Z)    textparser.obj   
      Fehler    90    error LNK2019: unresolved external symbol "int __cdecl flag_bsearch(unsigned short * const,unsigned short,int)" (?flag_bsearch@@YAHQAGGH@Z) referenced in function "public: int __thiscall TextParser::is_wordchar(char *)" (?is_wordchar@TextParser@@QAEHPAD@Z)    textparser.obj   
      Fehler    91    error LNK2019: unresolved external symbol "int __cdecl unicodeisalpha(unsigned short)" (?unicodeisalpha@@YAHG@Z) referenced in function "public: int __thiscall TextParser::is_wordchar(char *)" (?is_wordchar@TextParser@@QAEHPAD@Z)    textparser.obj   
      Fehler    92    error LNK2019: unresolved external symbol "int __cdecl u8_u16(struct w_char *,int,char const *)" (?u8_u16@@YAHPAUw_char@@HPBD@Z) referenced in function "public: int __thiscall TextParser::is_wordchar(char *)" (?is_wordchar@TextParser@@QAEHPAD@Z)    textparser.obj   
      Fehler    93    fatal error LNK1120: 5 unresolved externals    S:\Visual Studio 2005\Projects\Hunspell\win_api\Debug\hunspell\hunspell.exe   

       
    • Hans Meier
      Hans Meier
      2009-02-13

      I found the solution, you have to add the files in folder /hunspell/ to each project. thanks!