gcc-4.6.2 crashes with a segfault when compiling EffectParser.cpp. The file expands to 275,320 lines after preprocessing. The include files do not seem to be a problem, as both GiGi and Boost (the ones that expand the file most) compile with gcc-4.6.2 and the very same FLAGS.
However, I found out that two includes are no necessary, and created a patch to remove them. Without those the file expands to 193,246 lines and compiles fine.
Note: If Boost really "boosts" and not "snails" your build, use it, it is a very great project. But please keep in mind that it is a monster bloating everything into oblivion if its include files are used too much. Whenever possible one should write a couple of lines of own code instead of including dozens of thousands of othe lines.
Log in to post a comment.