Feature #822

Warnings while compiling with g++4.5

Added by Sebastien Gilles over 9 years ago. Updated over 8 years ago.

Target version:
Start date:
27 Apr 2012
Due date:
% Done:


Estimated time:



I've just compiled exiv2 because I'm using it for one of my projects I want to run on multiple platforms (development was under a Debian and embedded exiv2 was perfectly fine, but there is no such possibility with Windows)

I compiled it with g++ 4.5, and there were plenty of warnings (with proper warning flags such as -Wall)

Most of them were about the deprecation of std::auto_ptr, but others were about entirely others topics (for instance dubious conversions from float to unsigned int)

Do you intend to correct these warnings? I didn't look into the code, but from my experience g++ warnings are very often relevant.

Thanks anyway for your work on your very useful library.

Best regards,

S├ębastien Gilles



Updated by Robin Mills over 9 years ago

  • Assignee set to Robin Mills

Updated by Robin Mills over 9 years ago

  • Status changed from New to Assigned

Updated by Robin Mills about 9 years ago

  • Status changed from Assigned to Resolved

The instructions for building on cygwin are:

I've recommended:
./configure --disable-visibility

as this will eliminate the visibility warnings. (Some Unix/GCC platforms require visibility)

I've built and run the 0.23 download from: with the following gcc:

512 rmills@rmills-laptop:/c/gnu.cygwin/exiv2 $ gcc --version
gcc (GCC) 4.5.3
513 rmills@rmills-laptop:~ $ uname -a
CYGWIN_NT-6.1-WOW64 rmills-laptop 1.7.15(0.260/5/3) 2012-05-09 10:25 i686 Cygwin
514 rmills@rmills-laptop:~ $

This compiles, links and executes our test suite with no errors or warnings.

I've submitted a change (which will be in 0.24) to ensure --disable-visibility is the default for cygwin.


Updated by Robin Mills over 8 years ago

  • Status changed from Resolved to Closed
  • Target version set to 0.24

Fixed in 0.24.

Also available in: Atom PDF