From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 03:04:08 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD52016A4E0 for ; Mon, 17 Jul 2006 03:04:08 +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 10E4043D46 for ; Mon, 17 Jul 2006 03:04:01 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k6H341QG029193; Sun, 16 Jul 2006 22:04:01 -0500 (CDT) (envelope-from dan) Date: Sun, 16 Jul 2006 22:04:01 -0500 From: Dan Nelson To: Eder Message-ID: <20060717030400.GA81811@dan.emsphone.com> References: <2699850607161535o22a8fef1g67a3283adef5a5dd@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2699850607161535o22a8fef1g67a3283adef5a5dd@mail.gmail.com> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org Subject: Re: Error Api OpenLdap X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 03:04:08 -0000 In the last episode (Jul 16), Eder said: > I am having problems to use the API of ldap simply when I compile the > code says that the archive does not exist. > > #include > int main(void) > { > } > > % cc test.c > test.c:2:18: ldap.h: No such file or directory You want "cc -I/usr/local/include test.c", and if you intend on linking to the library, you will also need to add "-L/usr/local/lib -lldap". -- Dan Nelson dnelson@allantgroup.com