title: libtiff x64 visual studio 2017 : Linker Issue
body: <p>I tried to use nuget package for libtiff : <a href="https://www.nuget.org/packages/libtiff-msvc-x64/" rel="nofollow noreferrer">=> Package &lt;=</a></p>
  
  <p>I wrote a little piece of code in order to read a multiframe image tif file.</p>
  
  <pre><code>vector&lt;Mat&gt; LibTiffReader::ReadMultiframeTiff(std::string FilePath)
  {
      vector&lt;Mat&gt; Result;
      TIFF* tif = TIFFOpen(FilePath.c_str(), "r");
      if (tif)
      {
          //Si le tif est ouvert, on itère sur ce qu'il y'a dedans...
          do
          {
              Mat Image;
              unsigned int width, height;
              uint32* raster;
  
              // On récupère la taille du tiff..
              TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &amp;width);
              TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &amp;height);
  
              uint npixels = width*height; // get the total number of pixels
  
              raster = (uint32*)_TIFFmalloc(npixels * sizeof(uint32)); // allocate temp memory (must use the tiff library malloc)
              if (raster == NULL) // check the raster's memory was allocaed
              {
                  TIFFClose(tif);
                  cerr &lt;&lt; "Could not allocate memory for raster of TIFF image" &lt;&lt; endl;
                  return vector&lt;Mat&gt;();
              }
  
              if (!TIFFReadRGBAImage(tif, width, height, raster, 0))
              {
                  TIFFClose(tif);
                  cerr &lt;&lt; "Could not read raster of TIFF image" &lt;&lt; endl;
                  return vector&lt;Mat&gt;();
              }
              Image = Mat(width, height, CV_8UC3); // create a new matrix of w x h with 8 bits per channel and 3 channels (RGBA)
  
                                                   // itterate through all the pixels of the tif
              for (uint x = 0; x &lt; width; x++)
                  for (uint y = 0; y &lt; height; y++)
                  {
                      uint32&amp; TiffPixel = raster[y*width + x]; // read the current pixel of the TIF
                      Vec3b&amp; pixel = Image.at&lt;Vec3b&gt;(Point(y, x)); // read the current pixel of the matrix
                      pixel[0] = TIFFGetB(TiffPixel); // Set the pixel values as BGR
                      pixel[1] = TIFFGetG(TiffPixel);
                      pixel[2] = TIFFGetR(TiffPixel);
                  }
              _TIFFfree(raster);
              Result.push_back(Image);
          } while (TIFFReadDirectory(tif));
      }
  
      return Result;
  }
  </code></pre>
  
  <p>I need to use libtiff, because i need to do some stuff with exif data of my image what OpenCV don't allow me to do.</p>
  
  <p>The problem is that when i want to compile, i have linker errors :</p>
  
  <pre><code>Error   LNK2001 unresolved external symbol inflateInit_ SIA &lt;Path&gt;\tiff.lib(tif_zip.obj)    1   
  Error   LNK2001 LNK2001 unresolved external symbol inflateInit_ SIA &lt;Path&gt;\tiff.lib(tif_pixarlog.obj)   1   
  </code></pre>
  
  <p>My package.config file is like that :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;packages&gt;
    &lt;package id="libtiff-msvc-x64" version="4.0.7.8808" targetFramework="native" /&gt;
  &lt;/packages&gt;
  </code></pre>
  
  <p>When i go on my project properties, i don't see any packages parameters.
  I tried to add manualy linker options to .lib files, but i have the same issues.</p>