[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Authentication / C file



On Mon, 20 Sep 1999, Samson Bisaro wrote:

   Hi , 
   i submit my problem.
   
   /tmp/cca139941.o: In function `connexion':
   /tmp/cca139941.o(.text+0x10): undefined reference to `ldap_init'
   /tmp/cca139941.o: In function `authentication':
   /tmp/cca139941.o(.text+0x56): undefined reference to `ldap_simple_bind_s'
   /tmp/cca139941.o(.text+0x6f): undefined reference to `ldap_perror'
   
   Any clue ?

try compiling it with (replace /openldap to where openldap is installed):

gcc -O2 -Wall -fPIC -I/openldap/include -c file.c -o file.o
gcc -L/openldap/lib -o file file.o -llber -lldap

Regards

Simon Murcott