Bug #809

abs ambiguity in nikonmn.cpp

Added by Pavel Heimlich almost 6 years ago. Updated over 5 years ago.

Status:ClosedStart date:25 Jan 2012
Priority:NormalDue date:
Assignee:Andreas Huggel% Done:

100%

Category:miscellaneous
Target version:0.23

Description

exiv2 0.22 fails to build with the below message:

gmake1: Entering directory `/var/tmp/exiv2/exiv2-0.22/src'
libtool: compile: /opt/test2/SolarisStudio12.3-solaris-x86-bin/solarisstudio12.3/bin/CC -library=stdcxx4 -lCrun -xldscope=hidden -I. "-DEXV_LOCALEDIR=\"/usr/local/share/locale\"" -I../xmpsdk/include -c -DEXV_BUILDING_LIB=1 nikonmn.cpp -KPIC -DPIC -o .libs/nikonmn.o
"nikonmn.cpp", line 2457: Error: Overloading ambiguity between "std::abs(double)" and "std::abs(float)".
"nikonmn.cpp", line 2458: Error: Overloading ambiguity between "std::abs(double)" and "std::abs(float)".

Solaris 11, Solaris Studio 12.3, x86

exiv2-nikonmn.diff Magnifier - patch (863 Bytes) Pavel Heimlich, 25 Jan 2012 14:40

T809.patch Magnifier - Visual Studio patch for r2665 (588 Bytes) Thomas Beutlich, 27 Feb 2012 12:24

Associated revisions

Revision 2665
Added by Andreas Huggel over 5 years ago

#809: Applied patch by Pavel Heimlich.

Revision 2667
Added by Andreas Huggel over 5 years ago

#809: Applied patch by Thomas Beutlich to fix Windows ccompilation error.

History

#1 Updated by Andreas Huggel over 5 years ago

  • Status changed from New to Resolved
  • Assignee set to Andreas Huggel
  • Target version set to 0.23
  • % Done changed from 0 to 100

Applied the patch without any changes, thanks!

#2 Updated by Thomas Beutlich over 5 years ago

Patch does not compile on Visual Studio.

>  nikonmn.cpp
>..\..\src\nikonmn.cpp(2481): error C2220: warning treated as error - no 'object' file generated
>..\..\src\nikonmn.cpp(2481): warning C4244: 'initializing' : conversion from 'float' to 'long', possible loss of data
New patch is attached.

#3 Updated by Andreas Huggel over 5 years ago

Thanks Thomas, I've applied the patch.

#4 Updated by Andreas Huggel over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux