Warnings while compiling with g++4.5
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.
Updated by Robin Mills over 6 years ago
- Status changed from Assigned to Resolved
The instructions for building on cygwin are: http://clanmills.com/exiv2/cygwin.shtml
as this will eliminate the visibility warnings. (Some Unix/GCC platforms require visibility)
I've built and run the 0.23 download from: http://www.exiv2.org/download.html 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.