开发者

Compile hunspell with Visual Studio

I need a spellcheck tool for my MS C++ (MFC) project. It looks like hunspell is a good choice. However, I found it difficult to compile with visual studio. Can someone help?

Here is what I have done: I downloa开发者_开发百科ded hunspell from sourceforge, the version is 1.2.14. Unzipped it. Created an empty solution in visual studio and added the projects into it. The project files are under win_api directory. Then I tried to compile it, and got a bunch of errors.

By the way, my operating system Vista (x64).

Please help.


Thanks for the reply. Today, I tried it on a Windows XP (x86) system and it compiled without errors.

The error message with Vista x64 was: error c2552: non-aggregates cannot be initialized with initializer list. It is for file 'utf_info.cxx'. It's strange that XP x86 works fine.

It seems the version 1.2.12 works fine, for both 32 and 64-bit machines.


This appears to be a known bug.

There's now a patch available, which has been integrated into the CVS as of January 13, 2011. Make sure that you grab the latest copy of the source.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜