Menu

TIFFOpen() fails

Help
Dan Man
2008-09-23
2012-07-26
  • Dan Man

    Dan Man - 2008-09-23

    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

     
    • Dan Man

      Dan Man - 2008-09-24

      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

       
    • GnuWin

      GnuWin - 2008-09-24

      Try compiling with the preprocessor flags AVOID_WIN32_FILEIO and BINMODE='"b"'