Error Api OpenLdap

Dan Nelson dnelson at allantgroup.com
Mon Jul 17 03:04:08 UTC 2006


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 at allantgroup.com


More information about the freebsd-hackers mailing list