ld cannot find vulkan
I have created a sample code to see if vulkan works on my system. It compiles all-right, but when the link process failed:
gave: /usr/bin/ld: cannot find -lvulkan
But with the whole path to the so-file it worked fine:
And my small app runs as expected
Can this be an error in the PATH, in vulkan.s0.1 or is it an error 40?
The link code above is taken from the build process of Eclipse
- Code: Select all
g++ -L/usr/lib64 -o "Vulkantest" ./src/Vulkantest.o -lglfw -lvulkan
gave: /usr/bin/ld: cannot find -lvulkan
But with the whole path to the so-file it worked fine:
- Code: Select all
g++ -L/usr/lib64 -o "Vulkantest" ./src/Vulkantest.o -lglfw /usr/lib64/libvulkan.so.1
And my small app runs as expected
Can this be an error in the PATH, in vulkan.s0.1 or is it an error 40?
The link code above is taken from the build process of Eclipse