Closed gvanem closed 10 months ago
Compiling with clang-cl, gives this error:
hackrf-tools/src/hackrf_sweep.c(685,3): error: call to undeclared function '_setmode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 685 | _setmode(_fileno(stdout), _O_BINARY); | ^
fixed by simply adding #include <io.h>.
#include <io.h>
PS: compiling with cl simply gives this warning warning C4013: '_setmode' undefined; assuming extern returning int
cl
warning C4013: '_setmode' undefined; assuming extern returning int
Thanks for the fix!
Compiling with clang-cl, gives this error:
fixed by simply adding
#include <io.h>
.