From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 01:04:53 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4E261065675 for ; Sun, 30 Nov 2008 01:04:53 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 8809C8FC13 for ; Sun, 30 Nov 2008 01:04:53 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id mAU14qqY027172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 29 Nov 2008 19:04:52 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id mAU14pGd027156; Sat, 29 Nov 2008 19:04:51 -0600 (CST) (envelope-from dan) Date: Sat, 29 Nov 2008 19:04:51 -0600 From: Dan Nelson To: Gary Kline Message-ID: <20081130010450.GC53570@dan.emsphone.com> References: <20081129225120.GA83398@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081129225120.GA83398@thought.org> X-OS: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD Mailing List Subject: Re: Anybody familiar with "publib"?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2008 01:04:53 -0000 In the last episode (Nov 29), Gary Kline said: > I found a neat function in publib that should do what I want, but > adding either > > #imclude // as per man publib > > OR > > #include "/usr/local/include/publib.h" > > fails. Yes, I am adding "-lpub" to the enc of gcc. Still bombs. > Anybody know why? Prev'ly when I've used the publib functions, I've > had to move/copy a slew of them into my private build. Be nice if > this just-worked! Try adding "-I /usr/local/include" to your compile line, and "-L /usr/local/lib" to your link line. Also, providing the error message instead of just saying "it fails" is helpful. -- Dan Nelson dnelson@allantgroup.com