AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2009.04.09 15:21 "[Tiff] (no subject)", by Navarro, Miguel
2009.04.09 15:53 "Re: [Tiff] (no subject)", by Pundu
2009.04.09 18:16 "[Tiff] Building libtiff on AIX", by Richard Nolde
2009.04.09 17:40 "Re: [Tiff] (no subject)", by Bob Friesenhahn
2009.04.08 20:31 "Re: [Tiff] cannot link to my own libtiff.lib", by Christian Henning
2009.04.08 15:05 "[Tiff] cannot link to my own libtiff.lib", by Christian Henning
2009.04.08 15:47 "Re: [Tiff] cannot link to my own libtiff.lib", by Bob Friesenhahn

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/