Tracker: Bugs

5 build fails with g++-4.6, svn r1745 - ID: 3371231
Last Update: Comment added ( cannam )

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.


Robin Gareus ( x42 ) - 2011-07-19 04:45:47 PDT

5

Closed

None

Nobody/Anonymous

None

SVN build

Public


Comments ( 2 )

Date: 2011-08-10 03:04:42 PDT
Sender: cannamProject Admin

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!



Date: 2011-08-04 06:05:06 PDT
Sender: salimma

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.


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2011-08-10 03:04:42 PDT cannam
allow_comments 1 2011-08-10 03:04:42 PDT cannam
close_date - 2011-08-10 03:04:42 PDT cannam