I think it would be better
- to build libtiff as a static library.
- to build fax2tiff as a console application that communicates with the library
In addition, you must decide which version of the files and memory-related files you want to use in your version of the library. There are Unix, DOS, and Windows versions for files associated with files and memory.
And for fax2tiff, you probably need the Windows version of getopt.c and getopt.h . You can use wingetopt.h and wingetopt.c found on koders.com
I successfully use libtiff-3.9.4 and tiff2pdf created using this approach.
Btw, libtiff version 3.9.4 is the latest in branch 3.x.
The following is part of my LibTiff.vcxproj . It shows what files are needed to build libtiff on Windows using Visual Studio 2010.
<ItemGroup> <ClInclude Include="t4.h" /> <ClInclude Include="tiff.h" /> <ClInclude Include="tiffconf.h" /> <ClInclude Include="tiffio.h" /> <ClInclude Include="tiffiop.h" /> <ClInclude Include="tiffvers.h" /> <ClInclude Include="tif_config.h" /> <ClInclude Include="tif_dir.h" /> <ClInclude Include="tif_fax3.h" /> <ClInclude Include="tif_predict.h" /> <ClInclude Include="uvcode.h" /> </ItemGroup> <ItemGroup> <ClCompile Include="tif_aux.c" /> <ClCompile Include="tif_close.c" /> <ClCompile Include="tif_codec.c" /> <ClCompile Include="tif_color.c" /> <ClCompile Include="tif_compress.c" /> <ClCompile Include="tif_dir.c" /> <ClCompile Include="tif_dirinfo.c" /> <ClCompile Include="tif_dirread.c" /> <ClCompile Include="tif_dirwrite.c" /> <ClCompile Include="tif_dumpmode.c" /> <ClCompile Include="tif_error.c" /> <ClCompile Include="tif_extension.c" /> <ClCompile Include="tif_fax3.c" /> <ClCompile Include="tif_fax3sm.c" /> <ClCompile Include="tif_flush.c" /> <ClCompile Include="tif_getimage.c" /> <ClCompile Include="tif_jbig.c" /> <ClCompile Include="tif_jpeg.c" /> <ClCompile Include="tif_luv.c" /> <ClCompile Include="tif_lzw.c" /> <ClCompile Include="tif_next.c" /> <ClCompile Include="tif_ojpeg.c" /> <ClCompile Include="tif_open.c" /> <ClCompile Include="tif_packbits.c" /> <ClCompile Include="tif_pixarlog.c" /> <ClCompile Include="tif_predict.c" /> <ClCompile Include="tif_print.c" /> <ClCompile Include="tif_read.c" /> <ClCompile Include="tif_strip.c" /> <ClCompile Include="tif_swab.c" /> <ClCompile Include="tif_thunder.c" /> <ClCompile Include="tif_tile.c" /> <ClCompile Include="tif_unix.c" /> <ClCompile Include="tif_version.c" /> <ClCompile Include="tif_warning.c" /> <ClCompile Include="tif_write.c" /> <ClCompile Include="tif_zip.c" />
source share