Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4961

C/C++ • Re: how to resolve 'glibc_2.34 not found'

$
0
0

You can build statically, with no dependencies on external libs.
While that makes executables larger, it does have the side effect of making them much more portable between different versions of OS.
Be gentle with me, I'm an old(er) man.
From what I can see, I can pass -static-libgcc as an option, or do you mean -static?

This feels vaguely familiar from working with W*ndows, where trying to mix libraries which were compiled to use dynamic runtime and ones which were compiled to use static runtime was, shall we say, fraught.

However, one slight complication was that I needed to examine each of the other libraries I used (freetype, for example) so that I could add explicit -l options on to the link command.

Statistics: Posted by SteveSpencer — Fri Apr 26, 2024 9:24 am



Viewing all articles
Browse latest Browse all 4961

Trending Articles