[swfmill] 0.2.12.6 no longer compiles with gcc/g++ 4.4.1
Marcin Cieslak
saper at saper.info
Thu Nov 5 11:52:30 PST 2009
Daniel Cassidy <mail at danielcassidy.me.uk> wrote:
> 2009/11/2 armencho at gmail.com <armencho at gmail.com>:
>> Should the implicit casting work? Why does 4.4.1 suddenly reject it
>> while earlier gcc accepted it. Perhaps a compiler switch is set wrong?
>> Or is no longer used by the compiler?
>
> The compiler is correct. I don’t know why it worked in earlier
> versions, but I’m guessing that they failed to enforce the different
> declarations of strrchr between C and C++.
Earlier gcc versions issued a warning, but didn't complain more.
> I’ve fixed this problem in trunk. Thanks for reporting.
Confirmed to compile warning-free on FreeBSD with
gcc version 4.5.0 20090618 (experimental) (GCC)
The only thing I had to change was
-PKG_CHECK_MODULES(PNG, libpng)
+PKG_CHECK_MODULES(PNG, libpng12)
in configure.ac, but I guess this is the result of using older
version of FreeBSD port that does not link libpng.pc to libpng12.pc.
--
<< Marcin Cieslak // saper at saper.info >>
More information about the swfmill
mailing list