I have a code:
struct hostent *hp = gethostbyname(dns.c_str());
in my app. I compile it on Ubuntu server linking all statically. All ok, but when i try to start this app on CentOS i have a error in this gethostbyname calling:
Floating point exception
Can you help me how to fix that? Thanks!