I have just installed Visual Studio 2017 and I want to use the NTL library. I have followed the steps described here (for VS2013). Compiling NTL library in Visual Studio 2013
As expected, it compiles (with several, I hope, negligible warnings).
Then, under the same solution, I am doing these consecutive steps: (under the same solution)
- Add project -> New project -> Visual C++ -> Win32 Console Appl.
- Right click on the created project -> Set as StartUp Project
- Right click on the created project -> Add -> Reference -> NTL
- Right click on the created project -> Configuration Properties -> C/C++ -> General -> Additional Include Directories -> (NTL includes)
- Take/copy some file from folder "tests" (downloaded from the NTL repository)
- Remove everything below #include "stdafx.h"
- Paste and build
Those steps should work on VS2013 & VS2015, unfortunately when I build I got 4 linker related errors (LNK2019).
They all are similar to the example below:
Error LNK2019 unresolved external symbol "void __cdecl NTL::MatPrime_crt_helper_deleter(class NTL::MatPrime_crt_helper *)" (?MatPrime_crt_helper_deleter@NTL@@YAXPAVMatPrime_crt_helper@1@@Z) referenced in function "public: static void __cdecl NTL::ZZ_pInfoT::MatPrime_crt_helper_deleter_policy::deleter(class NTL::MatPrime_crt_helper *)" (?deleter@MatPrime_crt_helper_deleter_policy@ZZ_pInfoT@NTL@@SAXPAVMatPrime_crt_helper@3@@Z) NTLtest <thePathToTheLib> (ZZ_p.obj) 1
Can you advice how to proceed?
I have tried to built this example -> ZZ_pEXTest.cpp
Thank you in advance!