comp.lang.ada
 help / color / mirror / Atom feed
* Vulkan Ada binding and linking error on Windows 10
@ 2016-10-10 21:29 joakimds
  2016-10-11 10:43 ` G.B.
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: joakimds @ 2016-10-10 21:29 UTC (permalink / raw)


Hi!

The development progress on an Ada binding to Vulkan is now halted due to the following linker error on Windows 10:
gprbuild -PD:\projects\vulkan\examples\query_vulkan_for_information\default.gpr main.adb -p -j4 -d
gcc -c main.adb
gcc -c vk.ads
gprlib.exe vulkan_ada.lexch
ar.exe cr D:\projects\vulkan\lib\libvulkan_ada.a D:\projects\vulkan\obj\vk.o
ranlib.exe libvulkan_ada.a
gprbind main.bexch
gnatbind main.ali
gcc -c b__main.adb
gcc main.o -LC:/VulkanSDK/1.0.21.1/Bin32/ -lvulkan-1 -o main.exe
main.o:main.adb:(.text+0x104): undefined reference to `vkCreateInstance'
collect2.exe: error: ld returned 1 exit status
gprbuild: link of main.adb failed

The source code can be found here:
https://github.com/joakim-strandberg/vulkan

It is under the /examples/query_vulkan_for_information/ directory that the source code for the application that does not pass the linker stage can be found. I am using GNAT GPL 2016 on Windows 10.

An equivalent C++ application can found here:
https://github.com/joakim-strandberg/temp_cpp_vulkan
The C++ application builds without error. Why doesn't the Ada application build? Is there anyone on comp.lang.ada that can shed light on this?

For somebody totally new to Vulkan one can imagine Vulkan as "the latest version of OpenGL". To get started an update of the graphics driver to a new version that supports Vulkan may be needed followed by installation of the Vulkan SDK. More information can be found here:
https://lunarg.com/

Best regards,
Joakim Strandberg

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-10-20 20:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-10 21:29 Vulkan Ada binding and linking error on Windows 10 joakimds
2016-10-11 10:43 ` G.B.
2016-10-11 17:57   ` joakimds
2016-10-11 19:03     ` joakimds
2016-10-14 14:20 ` Olivier Henley
2016-10-14 21:02   ` Luke A. Guest
2016-10-20 20:27   ` joakimds
2016-10-14 23:40 ` mariloup.champagne
2016-10-14 23:42 ` Olivier Henley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox