I have downloaded the source code for the open-source gt package on fedora and am attempting to compile it on Debian. During compilation the following error in the title showed up for this piece of code in instrum.c:
#define READ_CHAR(thing) \
thing = tmp[tmpindex++];
The full error report is as follows:
instrum.c: In function ‘load_instrument’:
instrum.c:944:13: error: lvalue required as left operand of assignment
944 | thing = tmp[tmpindex++];
| ^
instrum.c:1173:7: note: in expansion of macro ‘READ_CHAR’
1173 | READ_CHAR ((int8)sp->aps_parameter);
| ^~~~~~~~~
make[1]: *** [Makefile:335: instrum.o] Error 1
make[1]: Leaving directory '/home/classic/gt-0.4/src'
make: *** [Makefile:235: all] Error 2
the struct that sp is defined is as follows:
typedef struct {
splen_t
loop_start, loop_end, data_length;
...
...
int32
freq_scale, vibrato_delay;
int8
aps_parameter, sw_up, sw_down, sw_lokey, sw_hikey, sw_last;
} Sample;