From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.237.54.98 with SMTP id e89mr101177qtb.15.1476134942621; Mon, 10 Oct 2016 14:29:02 -0700 (PDT) X-Received: by 10.157.43.193 with SMTP id u59mr20389ota.16.1476134942559; Mon, 10 Oct 2016 14:29:02 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!1.eu.feeder.erje.net!enother.net!enother.net!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!g45no1581181qte.1!news-out.google.com!w143ni5997itb.0!nntp.google.com!o19no2348805ito.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 10 Oct 2016 14:29:01 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.229.251.36; posting-account=HFCrOQoAAABZD_f-UUbYHm3lJDIrh-UX NNTP-Posting-Host: 85.229.251.36 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9ce98b4d-0924-4ce3-b911-059414403da9@googlegroups.com> Subject: Vulkan Ada binding and linking error on Windows 10 From: joakimds@kth.se Injection-Date: Mon, 10 Oct 2016 21:29:02 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2574 X-Received-Body-CRC: 1732863723 Xref: news.eternal-september.org comp.lang.ada:32067 Date: 2016-10-10T14:29:01-07:00 List-Id: Hi! The development progress on an Ada binding to Vulkan is now halted due to t= he 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 b= uild? 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 ve= rsion 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