Bug #803
Rational/URational issue in convert.cpp
100%
Description
exiv2-0.22 fails to build with the below error:
libtool: compile: /opt/test2/SolarisStudio12.3-solaris-x86-bin/solarisstudio12.3/bin/CC -xldscope=hidden -I. "-DEXV_LOCALEDIR=\"/usr/local/share/locale\"" -I../xmpsdk/include -c -DEXV_BUILDING_LIB=1 convert.cpp -KPIC -DPIC -o .libs/convert.o
"../xmpsdk/include/XMP_Environment.h", line 30: Warning (Anachronism): Attempt to redefine _FILE_OFFSET_BITS without using #undef.
"convert.cpp", line 594: Error: Cannot use std::pair<int, int> to initialize std::pair<unsigned, unsigned>.
1 Error(s) and 1 Warning(s) detected.
I used the below workaround to get past this:
- URational r = pos->toRational(2);
+ Rational r0 = pos->toRational(2);
+ URational r( r0.first, r0.second );
Solaris 11, Solaris Studio 12.3, x86
Associated revisions
History
Updated by Pavel Heimlich almost 10 years ago
similar issue is at
"crwimage.cpp", line 1038: Error: Cannot use std::pair<int, int> to initialize std::pair<unsigned, unsigned>.
Updated by Andreas Huggel over 9 years ago
- Category set to miscellaneous
- Target version set to 0.23
- % Done changed from 0 to 100
Thanks for reporting the issue!
#803: Fixed Rational/URational issues on Solaris.