Dan wrote:
The bit that makes me think I'm stupid is that it seems that neither gcc or I can find the source (.c) or compiled binaries (.o) which implement the structures and functions defined in ldap.h. What am I doing wrong? Where are the .c and .o files supposed to be on a regular linux system? Where on gentoo? Have I missed a crucial flag?

Openldap (like most software) installs its code in libraries under /usr/lib. They are called lib<name>.a (static) or lib<name>.so (dynamic). In your case the file is called /usr/lib/libldap.so. But you don't really need to know that. To compile your code, simply type:

gcc -o <your_prog> main.o myfile1.o myfile2.o -lldap

Where -lldap means: link against libldap.

Christoph
--
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" [EMAIL PROTECTED]
--
gentoo-user@gentoo.org mailing list

Reply via email to