在 VC++ 中使用 CMPH
我想使用 CMPH 中的最小完美哈希。知道如何在 VC++ 项目中使用它吗?
我在这里使用VC++ 2008 Express Edition创建了一个新项目并添加了头文件和源文件,但它输出编译错误。
1>------ Build started: Project: CMPH, Configuration: Release Win32 ------ 1>Compiling... 1>wingetopt.c 1>vstack.c 1>vqueue.c 1>select.c 1>.\select.c(24) : error C2054: expected '(' to follow 'inline' –
I would like to use minimal perfect hash from CMPH. Any idea how can I use it on a VC++ project?
I created a new project using VC++ 2008 Express Edition here and add the header and source files but it output compilation errors.
1>------ Build started: Project: CMPH, Configuration: Release Win32 ------ 1>Compiling... 1>wingetopt.c 1>vstack.c 1>vqueue.c 1>select.c 1>.\select.c(24) : error C2054: expected '(' to follow 'inline' –
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来该项目仅提供源代码,因此您必须下载源代码并使用您平台的编译器构建它。完成后,您将拥有
cmph.h
和关联的库。然后,您必须编辑 Visual Studio 项目并将头文件添加到项目中或将位置放入包含路径中,然后编辑项目以放置 .lib 所在的位置。
Looks like the project is delivered source-only, so you will have to download the source code and build it with your platform's compiler. When that is done, you will have
cmph.h
and an associated library.You will then have to edit your Visual Studio project and add the header file to your project or put the location into your include path, and edit the project to put the location where the .lib is.