farindk / libvideogfx

library for rapid development of video processing, computer vision, and computer graphics algorithms
GNU Lesser General Public License v2.1
14 stars 15 forks source link

Build fails: `bitreader.cc: error: lvalue required as increment operand` #3

Open barracuda156 opened 3 months ago

barracuda156 commented 3 months ago

The build fails presently. One error is trivial (just add <cassert>):

bitreader.cc:65:5: error: 'assert' was not declared in this scope

But then it fails on this:

libtool: compile:  /opt/local/bin/g++-mp-13 -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I/opt/local/include -pipe -Os -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -std=c++0x -MT bytebuffer.lo -MD -MP -MF .deps/bytebuffer.Tpo -c bytebuffer.cc  -fno-common -DPIC -o .libs/bytebuffer.o
bitreader.cc: In member function 'void videogfx::BitReader::Refill32bits()':
bitreader.cc:67:20: error: lvalue required as increment operand
   67 |     uint32 val = *((uint32*)d_ptr)++;
      |                   ~^~~~~~~~~~~~~~~
make[5]: *** [bitreader.lo] Error 1
make[5]: *** Waiting for unfinished jobs....