AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1999.11.22 18:00 "How to work with libtiff on WinNT/VC++6", by
1999.11.22 18:40 "Re: How to work with libtiff on WinNT/VC++6", by Frank Warmerdam
1999.11.25 07:18 "Problem with libtiff CCITT Fax 4 Decoder", by Kristian Sandven
1999.11.25 07:40 "Problem with libtiff CCITT Fax 4 Decoder", by Kristian Sandven

1999.11.22 18:00 "How to work with libtiff on WinNT/VC++6", by

Hello everybody,

my name is Ruediger and I am in this mailinglist for just a few weeks. I have just begun using libtiff, and I need some help for getting started quick. I hope somebody can tell me how to use/compile programms using libtiff v3.4 on a WinNT 4.0 SP4 Workstation with MS Visual C++ 6.0, or tell me a link to a good guide on how using libtiff.

e.g. what will I have to do to compile this program?

Do I have to precompile the libtiff?

Do I have to set some path to libtiff?

If I just try to compile this program, I can compile, but then I get a link error (unresolved external symbol), and I don't know which library to use.

#include <stdlib.h>
#include "tiffio.h"

void main(int argc, char* argv[])
{
    TIFF* tif = TIFFOpen(argv[1], "r");
    if (tif) {
     int dircount = 1;
     do {
         dircount++;
     } while (TIFFReadDirectory(tif));
     printf("%d directories in %s\n", dircount, argv[1]);
     TIFFClose(tif);
    }
    exit(0);
}

Thank you very much for your help,
I look forward hearing from you,
with best regards,

Ruediger