0

I have included vk_mem_alloc.h on my c project and in my cmake file i added it as an interface like this

add_library(include INTERFACE)
target_include_directories(include INTERFACE include)

while include is the folder where i put my vma header file and i added it without #define VMA_IMPLEMENTATION as mention in documentation like this

#include "include/vk_mem_alloc.h"

and yet it always gives me

undefined reference to 'vmaCreateAllocator'

when i try to initialize it

im using fedora 37 with vulkan 1.3

John Harrington
  • 1,314
  • 12
  • 36
ben abdo
  • 16
  • 1
  • 5

0 Answers0