AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
November 1999

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

1999.11.22 18:00 "How to work with libtiff on WinNT/VC++6", by <lincke@de.ibm.com>
1999.11.22 18:40 "Re: How to work with libtiff on WinNT/VC++6", by Frank Warmerdam

1999.11.22 18:00 "How to work with libtiff on WinNT/VC++6", by <lincke@de.ibm.com>

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