1993.12.20 11:15 "Problem with libtiff version 3.2 beta and Sun cc compiler", by Paolo Cavellini
I'm using LIBTIFF, Version 3.2 BETA on a Sun Sparc Workstation running SunOS 4.1.3
Compiling the library using the Sun cc compiler I had some problems with setting TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION, while using the GNU compiler everything works.
The problem is in TIFFWriteRational(). Look at this simple program (similar to TIFFWriteRational()):
main()
{
a(200.0);
}
a(x)
float x;
{
b(&x);
}
b(x)
float *x;
{
printf("%f",*x);
}
If you compile it using the Sun cc compiler the output will be:
3.640625
while if you compile it using the GNU compiler the output is:
200.000000
Is this a known bug of the Sun cc compiler?
Paolo Cavellini :-) (paul@most.it)