Ubuntu, g++, and Vulkan lib

616 views Asked by At

I'm going through the Vulkan Tutorial. I'm running Ubuntu 16.04 and g++. I'm not sure what the Vulkan lib is to enter with the -l flag (if that's my problem). The first program of the tutorial, here, runs with the following command:

g++ -std=c++11 main.cpp -lglfw

However, the next program, here, gives me the following error:

undefined reference to `vkCreateInstance'
1

There are 1 answers

2
Mike Glaz On

oops, the answer is at the beginning of the tutorial itself.

https://vulkan-tutorial.com/Development_environment

g++ -std=c++11 main.cpp -lglfw -lvulkan