I just downloaded libtiff and built a little project on Vista with Visual Studio. I am pointing the compiler to the ...\GnuWin\include directory for the include files and the linker to ...\GnuWin\lib for ibtiff.dll.a. The build works fine but the first call to TIFFOpen(), no matter what parameters I pass fails miserably with the error:
Unhandled exception at 0x0002c750 in Test.exe 0x0000005: Access violation reading location 0x0002c750
Am I missing anything from the build?
I would much appreciate any suggestion.
Thanks.
Dan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I just downloaded libtiff and built a little project on Vista with Visual Studio. I am pointing the compiler to the ...\GnuWin\include directory for the include files and the linker to ...\GnuWin\lib for ibtiff.dll.a. The build works fine but the first call to TIFFOpen(), no matter what parameters I pass fails miserably with the error:
Unhandled exception at 0x0002c750 in Test.exe 0x0000005: Access violation reading location 0x0002c750
Am I missing anything from the build?
I would much appreciate any suggestion.
Thanks.
Dan
I got my problem fixed by using a VisualStudio project to build libtiff posted by Andy McGovern at http://www.codeguru.com/cpp/g-m/bitmap/otherformats/article.php/c4933__1/.
Thanks for the suggestion.
Dan
Try compiling with the preprocessor flags AVOID_WIN32_FILEIO and BINMODE='"b"'