From owner-freebsd-questions@FreeBSD.ORG Sat Sep 13 10:52:29 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8688316A4BF for ; Sat, 13 Sep 2003 10:52:29 -0700 (PDT) Received: from web41312.mail.yahoo.com (web41312.mail.yahoo.com [66.218.93.61]) by mx1.FreeBSD.org (Postfix) with SMTP id 10E4643FF9 for ; Sat, 13 Sep 2003 10:52:29 -0700 (PDT) (envelope-from claudiubichir@yahoo.com) Message-ID: <20030913175229.68285.qmail@web41312.mail.yahoo.com> Received: from [213.233.107.218] by web41312.mail.yahoo.com via HTTP; Sat, 13 Sep 2003 10:52:29 PDT Date: Sat, 13 Sep 2003 10:52:29 -0700 (PDT) From: Claudiu Bichir To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Compile error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2003 17:52:29 -0000 Hy guys ! I'm triyng to compile this simple prog. in FreeBSD 5.0: #include #include 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