Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: <filtered@awaresystems.be>
Received: from mx1.public.one.com ([10.246.18.21])
	by mail6.local.one.com (Dovecot) with LMTP id e04UCWm/hlfN7AAAsyOMew
	for <filtered@awaresystems.be>; Wed, 13 Jul 2016 22:48:11 +0000
X-HalOne-ID: dedff3a8-494b-11e6-a4ca-b82a72d859f1
Received: from mail-qk0-f179.google.com (unknown [209.85.220.179])
	by mx1.public.one.com (Halon Mail Gateway) with ESMTPS
	for <filtered@awaresystems.be>; Wed, 13 Jul 2016 22:48:08 +0000 (UTC)
Received: by mail-qk0-f179.google.com with SMTP id s63so58147641qkb.2
        for <filtered@awaresystems.be>; Wed, 13 Jul 2016 15:48:08 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :date:from:to:in-reply-to:message-id:references:user-agent
         :mime-version:cc:subject:precedence:list-id:list-unsubscribe
         :list-archive:list-post:list-help:list-subscribe
         :content-transfer-encoding:sender:errors-to;
        bh=CKtjYh39b0PxRwLGP/dYRJ2SAZpckikfkGBel7MNDtE=;
        b=DblxDBN41W8x7mRnemfBV54fP5oyaaeD9ovPh1Kd2/Y6Q6wIxBe49IA2hidCAqAUrX
         6z2G3txDnBOnIDgodO+n6dJODEVUCgfby0TkYLwrPeMfZe71FhaOMAcEsQyWi0slmlUF
         kjwnuTKTaM972ALXrx0m6nssiTk6gBahN8DteIL4woBifNkLD5mNrKr1alzpRXHN+jnq
         dKfdcZzvg0X5bW6E3Dpetpi6L+twa1c5HmSQh4u9tSjtNsz8SUQQPIjs1LNK4BYZgni3
         6W6lDa01otax9MT2YDJd0Z9fbPRmtn3hdniNAWUR3KWsqzBPdqf/dvcGM4EB3dDOfZS9
         +P6w==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
X-Gm-Message-State: ALyK8tKlmoyleoslCoL8e1faGzC0Z77vjP6HSb9utQptviex3oc9PrN9Z56b+twT+LCdpp7SxI1D/N6xL41f+8/TiEIcnK0=
X-Received: by 10.55.154.11 with SMTP id c11mr14417150qke.117.1468450087686;
        Wed, 13 Jul 2016 15:48:07 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.55.147.129 with SMTP id v123csp131968qkd;
        Wed, 13 Jul 2016 15:48:06 -0700 (PDT)
X-Received: by 10.28.216.67 with SMTP id p64mr13118854wmg.56.1468450086790;
        Wed, 13 Jul 2016 15:48:06 -0700 (PDT)
Return-Path: <tiff-bounces@lists.maptools.org>
Received: from lists.maptools.org (ks365428.kimsufi.com. [94.23.4.142])
        by mx.google.com with ESMTP id n1si3242287wjk.291.2016.07.13.15.48.05;
        Wed, 13 Jul 2016 15:48:06 -0700 (PDT)
Received-SPF: neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=94.23.4.142;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id B0FF635C036;
	Wed, 13 Jul 2016 17:47:23 -0500 (EST)
Received: from smtp.simplesystems.org (smtp.simplesystems.org [65.66.246.90])
	by lists.maptools.org (Postfix) with ESMTPS id 9A6C835C02A
	for <tiff@lists.maptools.org>; Wed, 13 Jul 2016 17:47:14 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by smtp.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	u6DMlCZE002987; Wed, 13 Jul 2016 17:47:12 -0500 (CDT)
Date: Wed, 13 Jul 2016 17:47:12 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Bart Vandewoestyne <Bart.Vandewoestyne@telenet.be>
In-Reply-To: <CAD-WWzgS+NNsCA9-y_MFQCppEpH=48hVDjcOh4k_cKm03Zk9Vw@mail.gmail.com>
Message-ID: <alpine.GSO.2.20.1607131739430.268@freddy.simplesystems.org>
References: <CAD-WWzgS+NNsCA9-y_MFQCppEpH=48hVDjcOh4k_cKm03Zk9Vw@mail.gmail.com>
User-Agent: Alpine 2.20 (GSO 67 2015-01-07)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
	(smtp.simplesystems.org [65.66.246.90]);
	Wed, 13 Jul 2016 17:47:12 -0500 (CDT)
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Visual Studio 2012: snprintf problem when linking with
 libtiff.lib
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On Thu, 14 Jul 2016, Bart Vandewoestyne wrote:

> Hello list,
>
> I am building LibTIFF 4.0.6 with Visual Studio 2012, using the nmake
> approach from http://www.remotesensing.org/libtiff/build.html#PC.  I
> now try to link my own program with libtiff by making sure that
> libtiff.lib is found at link time.  However, I get the error:
>
> libtiff.lib(tif_dirinfo.obj) : error LNK2019: unresolved external
> symbol __TIFF_snprintf_f referenced in function __TIFFCreateAnonField

Fix libtiff/tif_config.vc.h so that its snprintf-related bits look 
like:

/* Visual Studio 2015 / VC 14 / MSVC 19.00 finally has snprintf() */
#if defined(_MSC_VER) && _MSC_VER < 1900
#define snprintf _snprintf
#else
#define HAVE_SNPRINTF 1
#endif

There is a fix in libtiff CVS which is supposed to fix the problem.

The source file port/snprintf.c is supposed to provide a snprintf 
replacement (_TIFF_snprintf_f()) when the MSVC runtime is not 
sufficient.  This means it needs to be included in the build.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
