You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to build this library to use with pure C. The build instructions in the repo seem to be for C++ however. I was wondering how this library could be built to be used with C?
Sorry this is not an actual issue with the library but the wiki does say I can ask questions by creating an issue.
The text was updated successfully, but these errors were encountered:
The library is written in C++, so it doesn't work with a project that only uses a compiler for pure C. The API (header) of the library is compatible with C, as it uses only global functions, structs, enums, etc., no classes. It means you can use the library in a C code. However, the internal implementation of VMA uses classes and other features up to C++14, so you need a modern C++ compiler to build the library. You can decide to make it part of your project source code or to compile it as a separate library, which will then have a C-compatible interface.
The library is written in C++, so it doesn't work with a project that only uses a compiler for pure C. The API (header) of the library is compatible with C, as it uses only global functions, structs, enums, etc., no classes. It means you can use the library in a C code. However, the internal implementation of VMA uses classes and other features up to C++14, so you need a modern C++ compiler to build the library. You can decide to make it part of your project source code or to compile it as a separate library, which will then have a C-compatible interface.
Thanks! I managed to compile it for C++ then link the static library with my C code. However I decided to switch to C++ anyway due to the better ecosystem.
I would like to build this library to use with pure C. The build instructions in the repo seem to be for C++ however. I was wondering how this library could be built to be used with C?
Sorry this is not an actual issue with the library but the wiki does say I can ask questions by creating an issue.
The text was updated successfully, but these errors were encountered: