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

2013.07.31 20:28 "Re: [Tiff] linker problems with libtiff4 using VC10", by Paavo

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".

The __imp prefix refers to dynamic (DLL) linking if I am not mistaken. The symbols wassert and qsort are most probably from C runtime. So it seems like you have compiled the libtiff static library with the options to link dynamically to the C runtime, but later when linking it all together you are probably using statically linked C runtime, which it cannot find then.

I am not too sure I am right, all this Windows linking is a bit like black magic;-)

hth
Paavo