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