2009.04.08 15:47 "Re: [Tiff] cannot link to my own libtiff.lib", by Bob Friesenhahn
Hi there, I have compiled the beta3 of libtiff-4.0. As the makefile.vc
I have to do is to: states, all
nmake /f makefile.vc
I did that and everything went ok. Meaning I created a libtiff.lib and
> libtiff.dll. But I cannot link to it. I get the following errors:
1>read_image.obj: error LNK2019: unresolved external symbol
> __imp__TIFFClose referenced in function _wmain
This sounds like a dllimport/dllexport issue. Since libtiff does not decorate the code with dllimport/dllexport, it seems likely that including libtiff/libtiff.def into your project will help. This will tell MSVC which functions are exported.
Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/