After installing the binary version of Linhpsdr (linhpsdr-0-0.11.20210710git742658a9.fc40.x86_64) in Fedora and reading about the changes and improvements in Matthew's version I decided to try building it but ran into a problem with the GCC 14 compiler in Fedora 40:
audio.c: In function ‘audio_open_input’:
audio.c:627:37: error: assignment to ‘float *’ from incompatible pointer type ‘gint16 *’ {aka ‘short int
*’} [-Wincompatible-pointer-types]
627 | r->local_microphone_buffer=g_new(gint16, r->local_microphone_buffer_size);
| ^
audio.c:631:37: error: assignment to ‘float *’ from incompatible pointer type ‘gint32 *’ {aka ‘int *’} [-
Wincompatible-pointer-types]
631 | r->local_microphone_buffer=g_new(gint32, r->local_microphone_buffer_size);
| ^
make: *** [Makefile:129: audio.o] Error 1
A Google search showed other programs had similar issues with GCC 14 becoming stricter. My C-programming knowledge is limited so I wanted to see if anyone here had run into this and can suggest how I can fix the errors. If I find a solution I'll post it here.
Thanks & 73, Doug
AH6DL