On Linux platform there are a few compile error using gcc 9.4.0.
1, undefined reference to `_getch'
2, src/exampleserver.c:2939:19: error: invalid operands to binary - (have ‘char *’ and ‘unsigned char *’)
2939 | pos = (int)(p - push->destination.data);
1) I have changed the function call from _getch to getchar()
2) I have made a (char*) cast for push->destination.data -> pos = (int)(p - (char*)push->destination.data)
Hi Dávid, I tested this with…
Hi Dávid,
I tested this with gcc 8 and works without problems, but I understand why it fails.
Thank you for pointing this out. This is now changed for the server example.
BR,
Mikko