2013.07.31 16:11 "[Tiff] linker problems with libtiff4 using VC10", by

2013.07.31 16:11 "[Tiff] linker problems with libtiff4 using VC10", by

Can anybody help regarding linker problems using libtiff in a Win32 (x64) console application under Visual Studio 2010?

I obtain unresolved external symbols when I statically link libtiff.lib under VC2010. The errors occur when I use multithreaded runtime libraries (compiler flag= /MT) under a x64 release configuration: The Linker reports these errors:

1>libtiff.lib(tif_fax3.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_lzw.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_dumpmode.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_predict.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_dirread.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_open.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_luv.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_zip.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_write.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_dirwrite.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_dir.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_read.obj): error LNK2001: Non resolved external symbol "__imp__wassert".

1>libtiff.lib(tif_unix.obj): error LNK2001: Non resolved external symbol "__imp__fstat64i32".

1>libtiff.lib(tif_dirinfo.obj): error LNK2001: Non resolved external symbol "__imp_bsearch".

1>libtiff.lib(tif_dirinfo.obj): error LNK2001: Non resolved external symbol "__imp_qsort".

1>libtiff.lib(tif_luv.obj): error LNK2001: Non resolved external symbol "__imp_rand".

If the Win x64 application is compiled and linked using Multithreaded-Debug runtime DLLs (/MDd) all works fine but I think this is not the optimal compiler set up in the release configuration.