Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas017.isp.belgacom.be (localhost [127.0.0.1])
        by inav016.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k5RIiOx9003510
        for <joris.at.lebbeke@skynet.be>; Tue, 27 Jun 2006 20:44:24 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx017.isp.belgacom.be (inmx017.isp.belgacom.be [195.238.4.129])
        by inas017.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k5RIiFo6029590
        for <joris.at.lebbeke@skynet.be>; Tue, 27 Jun 2006 20:44:15 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx017.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k5RIiBJ2000449
        for <joris.at.lebbeke@skynet.be>; Tue, 27 Jun 2006 20:44:12 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k5RIZHPP012517;
	Tue, 27 Jun 2006 14:36:36 -0400
Received: from scmze001.ssan.egs-seg.gc.ca (scmze001.ssan.egs-seg.gc.ca
	[205.194.19.85])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k5RIZB61012512
	for <tiff@lists.maptools.org>; Tue, 27 Jun 2006 14:35:11 -0400
Received: from bulwark1.ic.gc.ca ([192.197.178.1])
	by scmze001.ssan.egs-seg.gc.ca with ESMTP; 27 Jun 2006 14:35:11 -0400
Received: from msg-gate2.ic.gc.ca ([142.53.11.42]) by bulwark1.ic.gc.ca
	via smtpd (for scmze001.ssan.egs-seg.gc.ca [205.194.19.85]) with ESMTP;
	Tue, 27 Jun 2006 14:35:10 -0400
Received: from parapet11.ic.gc.ca (parapet11.ic.gc.ca [142.53.11.253])
	by msg-gate2.ic.gc.ca (Switch-3.1.8/Switch-3.1.7) with ESMTP id
	k5RIZAxD025351
	for <tiff@lists.maptools.org>; Tue, 27 Jun 2006 14:35:10 -0400 (EDT)
Received: from msg-con2.icent.ic.gc.ca by parapet11.ic.gc.ca
	via smtpd (for msg-gate2.ic.gc.ca [142.53.11.42]) with ESMTP;
	Tue, 27 Jun 2006 14:35:10 -0400
Received: from msg-con1.icent.ic.gc.ca ([142.53.28.148]) by
	msg-con2.icent.ic.gc.ca with Microsoft SMTPSVC(6.0.3790.211); 
	Tue, 27 Jun 2006 14:35:10 -0400
Received: from msg-mb2.icent.ic.gc.ca ([142.53.28.151]) by
	msg-con1.icent.ic.gc.ca with Microsoft SMTPSVC(6.0.3790.211); 
	Tue, 27 Jun 2006 14:35:10 -0400
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: RE: [Tiff] linker error
Date: Tue, 27 Jun 2006 14:35:09 -0400
Message-ID: <F78E6BBD22A6FC4489EBE25045407908036FA676@msg-mb2.icent.ic.gc.ca>
In-Reply-To: <20060627065519.16155.qmail@web7614.mail.in.yahoo.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] linker error
Thread-Index: AcaZtupAAnYWUKzhRkGnNAhjFDiWOAAYKvQg
From: "Pallek, Bernie: #CIPO - OPIC" <Pallek.Bernie@ic.gc.ca>
To: <tiff@lists.maptools.org>
X-OriginalArrivalTime: 27 Jun 2006 18:35:10.0065 (UTC)
	FILETIME=[6B88AE10:01C69A18]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by duke.maptools.org id
	k5RIZB61012512
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.0000180a
X-MSP-STORE: Tue, 27 Jun 2006 20:44:27 +0200
Status:   

> -----Original Message-----
> From: tiff-bounces@lists.maptools.org
> [mailto:tiff-bounces@lists.maptools.org]On Behalf Of malathi p
> Sent: Tuesday, June 27, 2006 2:55 AM
> To: tiff@lists.maptools.org
> Subject: [Tiff] linker error
> 
> 
> hi,
>    i downloaded gnuwin32 and starts working with tiff in 
> vc++6.0,but its  giving an error at runtime,plz somebody help 
> me out...
> 
> iam posting my code and the run time errors too
> 
> this s very simple appln,but nt yet working,plz help me out...
> 
> #include<tiffio.h>
> #include<iostream.h>
> void main()
> {
>  TIFF *t=TIFFOpen("C:\3.tif","r");
>  TIFFClose(t);
> }
> 
> in vc++
> 
> --------------------Configuration: prj - Win32 
> Debug--------------------
> Linking...
> open.obj : error LNK2001: unresolved external symbol _TIFFClose
> open.obj : error LNK2001: unresolved external symbol _TIFFOpen
> Debug/prj.exe : fatal error LNK1120: 2 unresolved externals
> Error executing link.exe.
> prj.exe - 3 error(s), 0 warning(s)

Firstly, it's important to note that you have NOT in fact got runtime errors, as you haven't made it far enough to actually run the program.  ;-)  You do have a build error, however, and it's easily solved (probably).

My guess is that you have built libtiff, but you haven't actually linked its libraries to your application.  To do this, edit your project settings/properties, and find a setting (probably under "linking" or something similar) that allows you specify external/3rd-party libraries to link to your app.  You should add the libtiff stub, named by default, libtiff_i.lib.  Don't forget to move/copy libtiff.dll to the same place where your executable (prj.exe) will end up.

Alternately, you can just link libtiff.lib (a static version of the library) to your app, and then you don't need to mess about with the DLL.

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
