A recent commit in Hamlib, broke the compilation of rig/RigThread.cpp:
rig/RigThread.cpp(28): error C2664: 'int rig_list_foreach(int (__cdecl *)(rig_caps *,void *),void *)':
cannot convert argument 1 from 'int (__cdecl *)(const rig_caps *,void *)' to 'int (__cdecl *)(rig_caps *,void *)'
rig/RigThread.cpp(28): note: None of the functions with this name in scope match the target type
But now Hamlib has also a #define RIGCAPS_NOT_CONST to test for.
A recent commit in Hamlib, broke the compilation of
rig/RigThread.cpp
:But now Hamlib has also a
#define RIGCAPS_NOT_CONST
to test for.This is how I hacked around this issue:
I'm on Win-10 using MSVC (x64).