• Re: Debian 12 linking issue with libvukan (undefined reference) with GN

    From Greg Wooledge@21:1/5 to Johannes Krottmayer on Thu Jan 16 21:40:01 2025
    On Thu, Jan 16, 2025 at 20:27:17 +0000, Johannes Krottmayer wrote:
    $ g++ -lvulkan -o test test.cpp

    If I recall correctly, the library options need to be *after* the object
    files that use them. Thus:

    g++ -o test test.cpp -lvulkan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Johannes Krottmayer@21:1/5 to Greg Wooledge on Thu Jan 16 21:50:01 2025
    Hello Greg!

    On 1/16/25 21:31, Greg Wooledge wrote:
    On Thu, Jan 16, 2025 at 20:27:17 +0000, Johannes Krottmayer wrote:
    $ g++ -lvulkan -o test test.cpp

    If I recall correctly, the library options need to be *after* the object files that use them. Thus:

    g++ -o test test.cpp -lvulkan


    Oops, my mistake.

    I must admit the last (embedded) applications which I have created,
    where only freestanding projects, without external shared libraries.
    Totally forgotten this behavior from *g++/gcc*.

    Thank you for the clarification. Unfortunately I have wasted the whole
    day today with this layer 8 issue.

    Kind regards,

    Johannes K.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)