问题
I have downloaded NTL version 6.1.0 from http://www.shoup.net/ntl/download.html and having trouble compiling it in Visual Studio 2013. The documentation (http://www.shoup.net/ntl/doc/tour-win.html) only shows how to compile NTL in MSVC++ 6 which is not working in my case.
I need to use the NTL library to code the prime number in my cryptography project - ElGamal Digital Signature Scheme.
回答1:
- Use the "File\New\Project From Existing Code..." menu item.
- In the first page of the "Create New Project from Existing Code Files" wizard, select "Visual C++" in the "What type of project would you like to create?" combo box.
- Press the Next button.
- In the next page of the "Create New Project from Existing Code Files" wizard, press the Browse button and select the WinNTL-6_1_0\src directory for the "Project file location."
- In the "Project Name" edit, type NTL.
- Press the Next button.
- In the next page of the "Create New Project from Existing Code Files" wizard, select "Static Library (LIB) project" in the "Project type" combo box.
- Press the Next button.
- In the "Include search paths" edit, enter "..\Include."
- Press the Finish button.
NTL builds, but with warnings.
来源:https://stackoverflow.com/questions/23977300/compiling-ntl-library-in-visual-studio-2013