2017.03.17 14:29 "[Tiff] TIFFSetErrorHandler vs TIFFSetErrorHandlerExt", by Dinesh Iyer

2017.03.17 23:03 "Re: [Tiff] TIFFSetErrorHandler vs TIFFSetErrorHandlerExt", by Bob Friesenhahn

This does not mean libTIFF should be converted to C++. It's just a general remark that a library does not need to be developed in C in order to have C interface.

I agree with what you said, but need to point out that it is still necessary to link with the C++ compiler to be assured of success. In my experience this proves to be painful when dealing with many platforms and compilers. Now there are many flavors of C++ and C++ run-times (forward progress of C++ standards and alternative C++ libraries) so there are more things to get right at link-time.

If there is only one target platform, then things are much easier.

The current error reporting is based on a callback and it does not matter much if the callback is called immediately at the point where the problem occured, or an exception is thrown, caught, and then the callback is called just under the called C API.

It is easiest to fix the libtiff C API to be more suitable.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/