From owner-freebsd-questions Sat Jul 13 1: 9:10 2002 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 A72B337B400 for ; Sat, 13 Jul 2002 01:09:07 -0700 (PDT) Received: from pallas.or.intel.com (pallas.or.intel.com [134.134.214.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B78343E31 for ; Sat, 13 Jul 2002 01:09:07 -0700 (PDT) (envelope-from pavan.balaji@intel.com) Received: from orsmsxvs040.jf.intel.com (orsmsxvs040.jf.intel.com [192.168.65.206]) by pallas.or.intel.com (8.11.6/8.11.6/d: solo.mc,v 1.42 2002/05/23 22:21:11 root Exp $) with SMTP id g6D6WRa11141 for ; Sat, 13 Jul 2002 06:32:56 GMT Received: from orsmsx26.jf.intel.com ([192.168.65.26]) by orsmsxvs040.jf.intel.com (NAVGW 2.5.2.11) with SMTP id M2002071223325104310 for ; Fri, 12 Jul 2002 23:32:51 -0700 Received: by orsmsx26.jf.intel.com with Internet Mail Service (5.5.2653.19) id <3Y0LC8NS>; Fri, 12 Jul 2002 23:32:27 -0700 Message-ID: <3D386AED1B47D411A94300508B11F18703BC5B9B@fmsmsx116.fm.intel.com> From: "Balaji, Pavan" To: "'freebsd-questions@freebsd.org'" Subject: Library functions Date: Fri, 12 Jul 2002 23:32:26 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I was having some problem adding a new library call in FreeBSD. I added a simple library function in /usr/src/lib/libc/net and did a "make buildworld" on /usr/src. It compiled properly, but I'm not able to use the library call in my programs. Am I doing something wrong? Here's the file added to /usr/src/lib/libc/net: ------ mycall.c: #include #include int mycall (a) { return (a); } ------- mycall.h (Added to /usr/include/net/) #ifndef _NET_MYCALL_H_ #define _NET_MYCALL_H_ int mycall __P((int)); #endif -------- On compilation the user program says: undefined reference to 'mycall' Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message