0

I want use functions from Mozilla Network Security Services, but I didn't find how to work with them from Visual Studio 2015.

I downloaded it from here, but I get an error when I try to build it:

Not found 'types.h'

(I searched for the file in the project folder and it does not exist)

How to can use NSS in VS2015?

zx485
  • 28,498
  • 28
  • 50
  • 59
hector
  • 1
  • 1

1 Answers1

0

You need to put the location of the library's header files into your project properties. You probably also need to specify the directory where the library's .lib files are, in case it uses precompiled libs.

Right-click the project, select Properties and enter the path to the library's header directory here:

VS 2015 Properties - VC++ Directories

Felix Dombek
  • 13,664
  • 17
  • 79
  • 131
  • Thanks, I added the directories, I have not the _.lib _ Where I can download precompiled **NSS** – hector Mar 09 '17 at 01:56
  • If NSS comes without them, you probably won't need any. Follow the instructions given by the NSS developers. – Felix Dombek Mar 09 '17 at 02:27
  • Thanks Felix, I tried but not work -> Not found 'types.h'. – hector Mar 09 '17 at 03:00
  • Ah, this isn't even an NSS header. This is the C header `sys/types.h` which is shipped with Visual Studio. You need to specify the path to it. Locate it on your system and tell the compiler to use it. – Felix Dombek Mar 09 '17 at 03:06
  • I fixed the problem commented the line, but now a new error _CERT_some_functions unresolved_ when I try to build it. – hector Mar 10 '17 at 01:44