Description of problem: gcc compiler gets an error when compiling swftools; http://www.swftools.org/ Problem applies to several versions of the software including the development and latest 'stable' version. Fedora V-9 and gcc 4.3 compile this software without error. Version-Release number of selected component (if applicable): gcc v-4.4.0 How reproducible: Download and compile the swftools source code. Fairly small program. Shouldn't take long. Requires jpeglib and freetype. Steps to Reproduce: 1. Compile swftools source code. 2. 3. Actual results: Compiler gets an error; GFXOutputDev.cc: In function ‘void addGlobalFont(const char*)’: GFXOutputDev.cc:2507: error: invalid conversion from ‘const char*’ to ‘char*’ Expected results: Additional info: This same source code compiles without error on Fedora9 and ubuntu distro.
That's not a compiler bug, the source you are trying to compile is simply invalid C++. Look for Strict null-terminated sequence utilities in http://gcc.gnu.org/gcc-4.4/porting_to.html or the C++ standard.