The source code of gguf-tools is a mix of C and C++.
IF it is compiled in C, it doesn't work because the included file "mmap.h" contains "static_cast<>" a C++ keyword
IF it is compiled in C++, there are a lot of errors on (void*) pointers converted in some other pointer type without explicit cast.
I am using MSYS2 gcc compiler v 13.1 under Windows.
I think it is better to have everything in C++ because the compiler does many more checks.
BUT if the code is generated by XXX_CODER, XXX_CODER must study more to became a better programmer :-)
The source code of gguf-tools is a mix of C and C++.
IF it is compiled in C, it doesn't work because the included file "mmap.h" contains "static_cast<>" a C++ keyword
IF it is compiled in C++, there are a lot of errors on (void*) pointers converted in some other pointer type without explicit cast.
I am using MSYS2 gcc compiler v 13.1 under Windows.
I think it is better to have everything in C++ because the compiler does many more checks.
BUT if the code is generated by XXX_CODER, XXX_CODER must study more to became a better programmer :-)