Create statically-linked binary that uses getaddrinfo?

前端 未结 3 1774
忘掉有多难
忘掉有多难 2020-11-30 00:50

I have included the header netdb.h, where getaddrinfo is included, but gcc issues this warning:

warning: Using \'getaddrinfo\' in s         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 01:04

    I think certain features are dependent on the dynamic loader to work things out at run time. static linking is no longer practical unfortunately http://people.redhat.com/drepper/no_static_linking.html

提交回复
热议问题