#161 build fails with g++-4.6, svn r1745


In file included from ./data/fileio/MatrixFile.h:19:0,
from data/fft/FFTFileCacheReader.h:19,
from data/fft/FFTFileCacheReader.cpp:16:
./base/ResizeableBitset.h:27:29: error: expected ‘)’ before ‘size’
./base/ResizeableBitset.h:43:17: error: ‘size_t’ has not been declared


simply adding
#include <stdlib.h>
to the boilerplate of base/ResizeableBitset.h solves the issue.


  • Michel Alexandre Salim

    That probably should be #include <cstddef> rather than <stdlib.h> - whenever possible you want to use the wrapped C++ headers, not the original C ones.

  • Chris Cannam

    Chris Cannam - 2011-08-10
    • status: open --> closed
  • Chris Cannam

    Chris Cannam - 2011-08-10

    Note that the SVN repository has been defunct for some time -- the code is now in Mercurial at http://code.soundsoftware.ac.uk/projects/sonic-visualiser/.

    (There has been a note about this, very prominently, in the SVN source tree for some months now -- as I wanted to offer a "deprecation warning" before simply removing the repo. But since it seems people are still erroneously using it, I've now moved the SVN repo trunk away to a tag to force the issue.)

    That said -- the file in question still lacked this #include in the latest Hg code, so I've added it. Thanks!


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks