A native build of the following compiles/links/runs without issue. It sounds like you may have an issue with your cross-compilation environment.
Code:
#include <gpiod.h>#include <stdio.h>int main() { puts(gpiod_api_version()); return 0;}Code:
$ gcc test.c -lgpiod$ ./a.out2.2.1$ readelf --wide --dyn-syms a.out | awk 'NR>3 && /GLIBC/{print $8}'__libc_start_main@GLIBC_2.34__cxa_finalize@GLIBC_2.17abort@GLIBC_2.17puts@GLIBC_2.17Statistics: Posted by roliver — Wed Jan 07, 2026 12:04 pm