Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Sep 2003 10:52:29 -0700 (PDT)
From:      Claudiu Bichir <claudiubichir@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Compile error
Message-ID:  <20030913175229.68285.qmail@web41312.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hy guys ! I'm triyng to compile this simple prog. in FreeBSD 5.0:
#include <stdio.h>
#include <netdb.h>
 
int main()
{
char h[80];
struct hostent *x;
 
printf("Host:");scanf("%s",h);
x=gethostbyname(h);
printf("%s\n", x->h_addr_list[0][0]);
return 0;
}
 
 but it gives me the fallowing error 
/var/tmp//ccDxQUWw.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
Does anybody know why ?


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030913175229.68285.qmail>