getaddrinfo is not statically compiled

bassis joebassis@gmail.com
Wed Apr 28 11:15:00 GMT 2010


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 ?

-- 
View this message in context: http://old.nabble.com/getaddrinfo-is-not-statically-compiled-tp28385701p28385701.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list