0

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'
Mike Glaz
  • 5,352
  • 8
  • 46
  • 73
  • Possible duplicate of [What is an undefined reference/unresolved external symbol error and how do I fix it?](http://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix) – Colonel Thirty Two Dec 24 '16 at 20:53

1 Answers1

-1

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
Community
  • 1
  • 1
Mike Glaz
  • 5,352
  • 8
  • 46
  • 73
  • 1
    This would be a more useful answer if the information is pasted here instead of linking into a tutorial. – SurvivalMachine Dec 21 '16 at 14:07
  • 1
    Please elaborate a bit more what part of the linked tutorial helped you out. Added detailed explanation (what caused the error and) what solved it. Imagine this link could be broken some day, your answer would be useless then. Downvote until improved. – try-catch-finally Dec 21 '16 at 20:04