You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compile Error on Ubuntu lunar. Array subscript 0 is outside array bounds of ‘void [0]’. ??? not sure what to do next...
`
In file included from /home/rick/bin/micmac/include/StdAfx.h:73:
In member function ‘Pt2d& Pt2d::operator=(const Pt2d&) [with Type = double]’,
inlined from ‘void ElFifo::incr_capa() [with Type = Pt2d]’ at /home/rick/bin/micmac/include/ext_stl/fifo.h:202:28,
inlined from ‘void ElFifo::push_back(const Type&) [with Type = Pt2d]’ at /home/rick/bin/micmac/include/ext_stl/fifo.h:367:41,
inlined from ‘void ElFifo::pushlast(const Type&) [with Type = Pt2d]’ at /home/rick/bin/micmac/include/ext_stl/fifo.h:370:50,
inlined from ‘void PtsOfSquare(ElFifo<Pt2d >&, Pt2dr, Pt2dr)’ at /home/rick/bin/micmac/src/geom2d/basic.cpp:54:17:
/home/rick/bin/micmac/include/general/ptxd.h:278:15: error: array subscript 0 is outside array bounds of ‘void [0]’ [-Werror=array-bounds]
278 | x = p2.x;
`
The text was updated successfully, but these errors were encountered:
After some digging, the problem appears to be that the flag to treat all warnings as errors has been enabled, but warnings haven't been fixed first. So by default, the code simply doesn't build.
I was able to fix it by specifying -DWERROR=0 as a CMake option
Compile Error on Ubuntu lunar. Array subscript 0 is outside array bounds of ‘void [0]’. ??? not sure what to do next...
`
In file included from /home/rick/bin/micmac/include/StdAfx.h:73:
In member function ‘Pt2d& Pt2d::operator=(const Pt2d&) [with Type = double]’,
inlined from ‘void ElFifo::incr_capa() [with Type = Pt2d]’ at /home/rick/bin/micmac/include/ext_stl/fifo.h:202:28,
inlined from ‘void ElFifo::push_back(const Type&) [with Type = Pt2d]’ at /home/rick/bin/micmac/include/ext_stl/fifo.h:367:41,
inlined from ‘void ElFifo::pushlast(const Type&) [with Type = Pt2d]’ at /home/rick/bin/micmac/include/ext_stl/fifo.h:370:50,
inlined from ‘void PtsOfSquare(ElFifo<Pt2d >&, Pt2dr, Pt2dr)’ at /home/rick/bin/micmac/src/geom2d/basic.cpp:54:17:
/home/rick/bin/micmac/include/general/ptxd.h:278:15: error: array subscript 0 is outside array bounds of ‘void [0]’ [-Werror=array-bounds]
278 | x = p2.x;
`
The text was updated successfully, but these errors were encountered: