Webgraph ++ Compilation

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.