Devc++ compiling NTL libraries, and using instances

Source: Internet
Author: User

First download the NTL compressed package to the Shoup Web page (http://www.shoup.net/ntl/). Then extract the NTL compressed package to a folder, for example, the folder name is: Winntl-6_1_0.

Then copy the entire folder (NTL folder) under the Include folder in the Winntl-6_1_0 folder to the Include directory under the Dev-c++ installation directory (dev-cpp).

Now start building a static library of engineering files (for example, name Cntl.dev) by:

Click New-project-static Library.

Then add all the files in the NTL folder to the Src folder, by:

Click Project-add to Project-files.

Under Project-project options-directories-include directories, include the Include folder in the Winntl-6_1_0 folder.

Then compile a library file with the suffix cntl.a in the dev C + + folder and copy the file to the Lib folder under Dev C + +.

Then, when you run the program, add the previously generated CNTL.A file to Project-project options-parameters.

This time if there is a program that needs to use the NTL library, we need to do this.

1. Create a new static library by clicking New-project-static Library.

2. Include the compiled CNTL.A file. The method is the project----"project-options-------" parameters, will cntl.a the path to include linker inside.

3. Under Project-project options-directories-include directories, include the Include folder in the Winntl-6_1_0 folder.

4. Add the. cpp file you want to run into this static library. Then compile, run the file on the line.

Devc++ compiling NTL libraries, and using instances

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.