Attached a new patch with these changes. On Mon, 4 Dec 2023 at 12:15, Jonathan Wakely wrote: > On Sat, 2 Dec 2023 at 21:24, Costas Argyris wrote: > > > > Use std::vector instead of malloc'd pointer > > to get automatic freeing of memory. > > You can't include there. Instead you need to define > INCLUDE_VECTOR before "system.h" > > Shouldn't you be using resize, not reserve? Otherwise mdswitches[i] is > undefined. > >