Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-j.b-one.net (mx-j.one.com [91.198.169.57])
	by mail9.b-one.net (Postfix) with ESMTP id 9235D400122
	for <info@awaresystems.be>; Wed,  8 Apr 2009 22:42:28 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 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-j.b-one.net (Postfix) with ESMTP id BC4814A825D
	for <info@awaresystems.be>; Wed,  8 Apr 2009 22:42:27 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 70AE01D18F448;
	Wed,  8 Apr 2009 15:40:15 -0500 (EST)
Received: from mail-gx0-f217.google.com (mail-gx0-f217.google.com
	[209.85.217.217])
	by lists.maptools.org (Postfix) with ESMTP id 893551D18B0EE
	for <tiff@lists.maptools.org>; Wed,  8 Apr 2009 15:31:20 -0500 (EST)
Received: by gxk17 with SMTP id 17so671216gxk.21
	for <tiff@lists.maptools.org>; Wed, 08 Apr 2009 13:31:20 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.124.11 with SMTP id w11mr3095340ybc.176.1239222680265; 
	Wed, 08 Apr 2009 13:31:20 -0700 (PDT)
In-Reply-To: <Pine.SOC.4.64.0904081046310.29632@freddy.simplesystems.org>
References: <949801310904080805m3695dfb1s13fc6845d7c01e58@mail.gmail.com>
	<Pine.SOC.4.64.0904081046310.29632@freddy.simplesystems.org>
Date: Wed, 8 Apr 2009 16:31:20 -0400
Message-ID: <949801310904081331k1903c7ebt46ae01150387c492@mail.gmail.com>
From: Christian Henning <chhenning@gmail.com>
To: libtiff - Liste <tiff@lists.maptools.org>
Subject: Re: [Tiff] cannot link to my own 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="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Thanks Bob, that was the solution. Unfortunately, for
TIFFSetErrorHandler and TIFFSetWarningHandler I still get the linker
error. I wonder how the Win32 libtiff binaries are build, since here
everything works flawless.

Regards,
Christian

On Wed, Apr 8, 2009 at 11:47 AM, Bob Friesenhahn
<bfriesen@simple.dallas.tx.us> wrote:
> On Wed, 8 Apr 2009, Christian Henning wrote:
>
>> Hi there, I have compiled the beta3 of libtiff-4.0. As the makefile.vc
>> states, all I have to do is to:
>>
>> nmake /f makefile.vc
>>
>> I did that and everything went ok. Meaning I created a libtiff.lib and
>> libtiff.dll. But I cannot link to it. I get the following errors:
>>
>> 1>read_image.obj : error LNK2019: unresolved external symbol
>> __imp__TIFFClose referenced in function _wmain
>
> This sounds like a dllimport/dllexport issue. Since libtiff does not
> decorate the code with dllimport/dllexport, it seems likely that including
> libtiff/libtiff.def into your project will help. =A0This will tell MSVC w=
hich
> functions are exported.
>
> Bob
> --
> Bob Friesenhahn
> bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer, =A0 =A0http://www.GraphicsMagick.org/
>
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
