2009.03.31 14:25 "[Tiff] Problem with Libtiff 3.8.2", by Tony Dart

2009.03.31 18:16 "Re: [Tiff] Building libtiff with Mingw32", by Richard Nolde


Try downloading the free Code::Blocks IDE for building with Mingw32. http://www.codeblocks.org/

Once set up, it makes it very easy to create DEBUG and release versions and configure all the paths to the headers and libraries.

I've used it to write Windows services and found it easy to use. It does seem to have some dependencies on the version of gcc and gdb that you are using.

Richard Nolde

I am trying to write a tiff reading program under Windows. I downloaded GnuWin32 LibTiff and tools and checked that the exe files worked. I copied the headers from the include directory to the include directory of the compiler (MinGW 3.4.5), the lib files to C:\mingw\lib, and the .dlls to C:\mingw\bin.

However, if I try to include tiffio.h I get a compiler error of "no such file or directory". If I include the full path to the file it finds it eg

#include <stdio.h>
#include <C:\mingw\include\tiffio.h> // works
#include <tiffio.h> // doesn't work

I then get loads of undefined referencrs which normally are solved by a link to therelevant library in the compilation command line eg

g++ test.cpp -o test.exe -L/C:/mingw/lib/libtiff.lib

but no joy this time.

Any thoughts on how to get this working would be deeply appreciated.