comp.lang.ada
 help / color / mirror / Atom feed
From: joakimds@kth.se
Subject: Vulkan Ada binding and linking error on Windows 10
Date: Mon, 10 Oct 2016 14:29:01 -0700 (PDT)
Date: 2016-10-10T14:29:01-07:00	[thread overview]
Message-ID: <9ce98b4d-0924-4ce3-b911-059414403da9@googlegroups.com> (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

             reply	other threads:[~2016-10-10 21:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-10 21:29 joakimds [this message]
2016-10-11 10:43 ` Vulkan Ada binding and linking error on Windows 10 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
replies disabled

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