getaddrinfo is not statically compiled
Posted
by bobby
on Stack Overflow
See other posts from Stack Overflow
or by bobby
Published on 2010-04-27T21:25:05Z
Indexed on
2010/04/27
21:43 UTC
Read the original article
Hit count: 427
I have included the header netdb.h, where getaddrinfo is included, but gcc issues this warning:
warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
gcc -m32 -static -s -O2 -std=c99 -D_POSIX_C_SOURCE=200112L myprogram.c
How can I statically compile whatever file is missing ?
© Stack Overflow or respective owner