使用 Visual Studio 编译 hunspell
我的 MS C++ (MFC) 项目需要一个拼写检查工具。看来hunspell是一个不错的选择。但是,我发现用Visual Studio编译很难。有人可以帮忙吗?
这是我所做的: 我从sourceforge下载了hunspell,版本是1.2.14。解压它。 在 Visual Studio 中创建一个空解决方案并将项目添加到其中。项目文件位于 win_api 目录下。 然后我尝试编译它,但出现了一堆错误。
顺便说一句,我的操作系统是 Vista (x64)。
请帮忙。
感谢您的回复。 今天在Windows XP(x86)系统上尝试了一下,编译没有错误。
Vista x64 的错误消息是:错误 c2552:无法使用初始值设定项列表初始化非聚合。它用于文件“utf_info.cxx”。奇怪的是XP x86 运行得很好。
看来 1.2.12 版本对于 32 位和 64 位机器都运行良好。
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 downloaded 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这似乎是一个已知错误。
现在有一个可用的补丁,其中包含自 2011 年 1 月 13 日起已集成到 CVS 中。请确保您获取源代码的最新副本。
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.