-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to compile in C project #46
Comments
Have you considered including
in a C++ file and than linking against that ? In the documentation it says:
|
I must have misunderstood that part. Making a standalone vma.cpp and including only those two lines, then compiling using And then including vma.o in my C project compilation together with Not including This works fine I guess. |
That's right. This library is written in C++, but has C-compatible interface. Thus you can include and use vk_mem_alloc.h in C or C++ code, but full implementation with |
Hi,
I tried including VMA in my C project using:
but when I compile with gcc (-std=c11) I get this error:
I wouldn't be surprised if I'm just missing something obvious, but I can't figure out what.
Any help would be much appreciated.
Thank you.
The text was updated successfully, but these errors were encountered: