When I build my program, I have next error:
Error C1083
Cannot open include file: 'ZZ.h': No such file or directory NTL
C:\Progs\NTL\src.cpp
My code:
#include <ZZ.h>
int main(){
ZZ a, b, c;
return 0;
}
- Download library ntl 11.5.1 for Windows from https://libntl.org/download.html
- Build static library
- File \ New \ Project Existing Code...
- Next
- Project file location: C:\2\WinNTL-11_5_1\src
- Preject name: ntl
- Next
- Project type: Static library (LIB) project
- Finish
- Project \ Properties \ VC++ Directories \ Include Directories \ Edit: C:\2\WinNTL-11_5_1\include
- Build \ Rebuild Solution
- Copy static library _NTL.lib in my project NTL
- In NTL project:
- Project \ Properties \ VC++ Directories \ Library Directories -> ./NTL
- Project \ Properties \ Linker \ Input \ Additional Dependencies -> _NTL.lib