Date: Sun, 16 Jul 2006 22:04:01 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Eder <ederbs.hackers@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Error Api OpenLdap Message-ID: <20060717030400.GA81811@dan.emsphone.com> In-Reply-To: <2699850607161535o22a8fef1g67a3283adef5a5dd@mail.gmail.com> References: <2699850607161535o22a8fef1g67a3283adef5a5dd@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
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 <ldap.h>
> 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060717030400.GA81811>
