2004.12.11 03:45 "[Tiff] linker errors", by S Smith

2004.12.11 03:45 "[Tiff] linker errors", by S Smith

I'm just trying to get up and running with libtiff. I've made the files and am starting to use them in a program and I'm getting linker errors. Does anyone have any suggestions as to what I should do? I'm using MFC in VS.NET.

I've included the header and pointed to the .lib. When I call:

TIFF* foo;
foo = TIFFOpen("c:\\foo.tif", "r");

I get these linker errors:

PreprocessIntrinsicData error LNK2005: _strncmp already defined in libcmtd.lib(strncmp.obj)
PreprocessIntrinsicData error LNK2005: _sprintf already defined in libcmtd.lib(sprintf.obj)
PreprocessIntrinsicData error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmtd.lib(typinfo.obj)

Of course, if I choose to excluded libcmtd.lib, that causes more problems than it solves.

Thanks in advance. -s