Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-i.b-one.net (mx-i.one.com [91.198.169.56])
	by mail9.b-one.net (Postfix) with ESMTP id 64A45400363
	for <info@awaresystems.be>; Mon, 10 Jan 2011 20:01:58 +0100 (CET)
Received: by mx-i.b-one.net (Postfix, from userid 106)
	id 551D213CEB56; Mon, 10 Jan 2011 20:01:22 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=4 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144]) by
 mx-i.b-one.net (Postfix) with ESMTP id 34BE913CEB56 for
 <info@awaresystems.be>; Mon, 10 Jan 2011 20:01:17 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by
 lists.maptools.org (Postfix) with ESMTP id 6FE8D8698E; Mon, 10 Jan 2011
 14:00:07 -0500 (EST)
Received: from oproxy3-pub.bluehost.com (oproxy3-pub.bluehost.com
 [69.89.21.8]) by lists.maptools.org (Postfix) with SMTP id DB599869CA for
 <tiff@lists.maptools.org>; Mon, 10 Jan 2011 13:59:21 -0500 (EST)
Received: (qmail 27046 invoked by uid 0); 10 Jan 2011 18:59:21 -0000
Received: from unknown (HELO host312.hostmonster.com) (74.220.215.112) by
 oproxy3.bluehost.com with SMTP; 10 Jan 2011 18:59:21 -0000
Received: from blk-11-99-121.eastlink.ca ([76.11.99.121]
 helo=rakkimacdaddy-2.local) by host312.hostmonster.com with esmtpsa
 (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from
 <jmckenna@gatewaygeomatics.com>) id 1PcMxc-0000kD-ST for
 tiff@lists.maptools.org; Mon, 10 Jan 2011 11:59:21 -0700
Message-ID: <4D2B5707.1030501@gatewaygeomatics.com>
Date: Mon, 10 Jan 2011 14:59:19 -0400
From: Jeff McKenna <jmckenna@gatewaygeomatics.com>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
 rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: tiff@lists.maptools.org
References: <4D2B315F.3010104@gatewaygeomatics.com>
 <4D2B3AE6.9090303@sidefx.com>
In-Reply-To: <4D2B3AE6.9090303@sidefx.com>
X-Identified-User:
 {1052:host312.hostmonster.com:gatewayg:gatewaygeomatics.com} {sentby:smtp
 auth 76.11.99.121 authed with jmckenna@gatewaygeomatics.com}
Subject: Re: [Tiff] Missing mkstemp() on Visual Studio 2008
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

Hello Edward,

Thank you for your response.  The changes made through this ticket 
recently (http://bugzilla.maptools.org/show_bug.cgi?id=2118) indeed 
changed from using tmpfile() to mkstemp().  I am unable to compile on 
Windows because of this change.  How should I compile CVS HEAD on 
windows therefore?

-jeff



On 11-01-10 12:59 PM, Edward Lam wrote:
> On 1/10/2011 11:18 AM, Jeff McKenna wrote:
>> I am trying to compile libtiff CVS HEAD on Windows using Visual Studio
>> 2008, but receiving errors of "unresolved external symbol _mkstemp".  I
>> can't seem to find that function in MSVC or the SDK.  I believe mkstemp
>> is a POSIX function....but how do I compile this version of libtiff
>> using Visual Studio?  Any ideas?
>
> For that particular case, I think we should just use tmpfile() which
> exists on Unix and Windows. The fact that we hardcode "/tmp" in the path
> is probably also a bad idea on Windows.
>
> -Edward
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
