2004.12.11 03:57 "Re: [Tiff] linker errors", by Chris Losinger
i'm going to guess that your app is built to use one version of the C/MFC runtimes and your LibTiff project is setup to use another.
look at the properties for both projects and compare the "C++ / Code Generation / Runtime Library" settings. they should match for the app and the library. if they don't match, you're mixing versions of the C-runtimes, and you'll get lots of multiply-defined symbol errors.
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:
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)
Of course, if I choose to excluded libcmtd.lib, that causes more problems than it solves.
Thanks in advance. -s
Do you Yahoo!?
Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com