Project

General

Profile

Bug #803

Rational/URational issue in convert.cpp

Added by Pavel Heimlich almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
miscellaneous
Target version:
Start date:
22 Jan 2012
Due date:
% Done:

100%

Estimated time:

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

Revision 2669 (diff)
Added by Andreas Huggel over 9 years ago

#803: Fixed Rational/URational issues on Solaris.

History

#1

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>.

#2

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!

#3

Updated by Andreas Huggel over 9 years ago

  • Status changed from New to Resolved
#4

Updated by Andreas Huggel over 9 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF