Skip to content

The source code of gguf-tools is a mix of C and C++ #30

Description

@corradomio

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 :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions