warning using 'gethostbyaddr' in statically linked application

warning using 'gethostbyaddr' in statically linked application

I have an application that can be built and executed sucessfully with Intel compiler 9.0 for linux and -cxxlib-gcc and -static switches. I changed the switch to -cxxlib-icc and got the following warning,

using 'gethostbyaddr' in statically linked application require atruntime the shared libraries from the glibc version used for linking.

I dontunderstand why I did not have the same error when using -cxxlib-gcc?

How do i fix it if I still want to use -cxxlib-icc?do i remove -static?

Thanks.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.