Re: Debian 12 linking issue with libvukan (undefined reference) with GNU C++ compiler/ld
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.
Reply to: