Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx012.isp.belgacom.be (inmx012.isp.belgacom.be [195.238.3.90])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id j0UBMbbk005102
        for <joris.at.lebbeke@skynet.be>; Sun, 30 Jan 2005 12:22:37 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx012.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j0UBMQWP011580
        for <joris.at.lebbeke@skynet.be>; Sun, 30 Jan 2005 12:22:29 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 9424E616EE1; Sun, 30 Jan 2005 06:22:10 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com
	[194.25.134.17])
	by xserve.flids.com (Postfix) with ESMTP id C1E7B616ED3
	for <tiff@remotesensing.org>; Sun, 30 Jan 2005 06:22:08 -0500 (EST)
Received: from fwd04.aul.t-online.de by mailout02.sul.t-online.com with smtp 
	id 1CvD9b-0000or-06; Sun, 30 Jan 2005 12:22:07 +0100
Received: from MAGNUM
	(E44pAqZG8e68twEJckyVb3LVymRYMaB3brQetDwmJFOImJwrKhfTEY@[217.245.160.33])
	by fmrl04.sul.t-online.com
	with smtp id 1CvD9N-1fFJVw0; Sun, 30 Jan 2005 12:21:53 +0100
From: Sherlog <sherlog@t-online.de>
To: tiff@remotesensing.org
Subject: Re: [Tiff] LIBTIFF HEADER by Stefan Dieball
Date: Sun, 30 Jan 2005 12:21:54 +0100
X-Meow: Zrbj!
Message-ID: <41fdc319$26a5386d@meow-labs.de>
References: <mailman.0.1106971348.15204.tiff@remotesensing.org>
	<BAY104-F13E417268BBCA6F6EDF903FB7B0@phx.gbl>
In-Reply-To: <BAY104-F13E417268BBCA6F6EDF903FB7B0@phx.gbl>
Organization: SNAFU Labs in Radis, Germany
X-No-Archive: yes
X-Mailer: Forte Agent 1.92/32.572:085  /\/\eo\/\/
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-ID: E44pAqZG8e68twEJckyVb3LVymRYMaB3brQetDwmJFOImJwrKhfTEY@t-dialin.net
X-TOI-MSGID: 614763f9-8331-4a59-be06-28b6c4570f62
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 69a8b3c9d35aa540b1f95ce2c0eab403

Stefan D in <BAY104-F13E417268BBCA6F6EDF903FB7B0@phx.gbl>:

> MICROSOFT VISUAL C++
> Maybe someone can help me to enable C++ for opening and reading TIFF files.

If you have a standard source distribution of libtiff then you need to build
the .lib/.dll files first and then tell VC++ where the .libs and header files
are.

To build: get a command prompt with the VC++ environment variables set.
Either pick the appropriate item from the VC++/VS submenu in the Start menu
(usually called "Visual Studio Command Prompt" or something like that) or
call the VSVars32.bat batch file from an existing cmd prompt. E.g.

| C:\> d:\VS8Beta\Common7\Tools\VSVars32
| Setting environment for using Microsoft Visual Studio 2005 tools.
| (If you have another version of Visual Studio or Visual C++ installed and wish
| to use its tools from the command line, run vsvars32.bat for that version.)

Then go to the directory where you have installed the libtiff source files
and run nmake:

| D:\dev\src\misc\tiff-3.7.1> nmake /f Makefile.vc

The master makefile will build all .libs, the .dll and the tools. In the VS
project options, add libtiff.lib as an additional link dependency (Linker ->
Input -> Additional Dependencies) and add the libtiff subdirectory as an
additional include path (C/C++ -> General -> Additional Include Directories).
If you have built libtiff.lib with default options then your project must be
set to use the dll runtime instead of statically linking the CRT (C/C++ ->
Code Generation -> Runtime Library: "Multi-threaded DLL (/MD)").

Luck++,
Sherlog
-- 
Sherlog    [Personenkennzahl 250866413515 / Stefan Otto / SO1801-RIPE]
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
