Wednesday, January 21, 2009

swfmill compilation problem

You can get compilation error when compile swfmill (http://www.swfmill.org) with GCC-4.3.x or higher. Mostly it will look like:

swft_css.cpp:197: error: 'strcmp' was not declared in this scope

The reason is GCC-developers have split some header files. So some functions are in other header files now. More about it is here: http://gcc.gnu.org/gcc-4.3/porting_to.html (see section header Header dependency cleanup).

To resolve the problem open file src/swft/swft_css.cpp in an editor and add the line in the top of the file:

#include <cstring>

The same problem also exists for file src/swft/swft_import_mp3.cpp and the solution is the same.