开发者

Using CMPH in VC++

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 th开发者_如何学Goe 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' –


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜