Webgraph is a good tool for storing and expressing web graphs. Currently, it provides Java, C ++, and other Java interfaces. In the past, I have been using the Java version, but an unknown error occurred when I recently used Java to compress a large Web Graph (over 60 GB. Therefore, I want to use the C ++ version for a try. We have also used the C ++ version of webgraph before, but it has never been built successfully. This time, after hard work, the build was successful. The detailed process is recorded below.
The compressed package downloaded from webgraph ++ contains a MAKEFILE file, which seems to be compiled in Linux. I checked it.Source codeIt is found that the Linux system is basically not called, so it should be built in windows.
First, create a project. First, put the HPP and CPP files in the corresponding header file and source file. Pay attention to the directory. In addition, there are many test or tests folders. Here we cannot add these to our project, otherwise there will be multiple main. At the end of compilation, we found that an HPP in the test folder under the bitstream directory is an exception and needs to be added to the project.
Step 2: Modify the project properties, change the output type to. Lib, and add the corresponding boost library and boost header file to the corresponding C ++ directory.
The third step is build, but some symbolic definitions are found during the link. We can add an option to ignore the forced link for redefinition.