[Date Prev][Date Next]
Re: ldap library link pb
Thanks for your help.
The proble came from my openldap libs : during installation, the "make
depend" failed, and the "make" generates dynamic libraries.
This morning i rebuilt the right static openldap libs, and my program
seems to link successfully with them.
note : under AIX, to run "make depend", i needed to set the MKDEP variable
to <my path/build/mkdep.aix
At 18/04/2002 12:37, Dejan Muhamedagic wrote:
I'm not sure if I understood your post right: You have openldap libraries
installed and would like to link another program/library with them. This
is the relevant part from my Makefile:
LIBS=-lc -lldap -llber -lssl -lcrypto
I was able to compile my program with both vac and gcc on v4.3 and v5.1.
The openldap libraries are static so I didn't have to do anything special
to get a program which includes the LDAP code (I suppose that that is your
objective). If the libraries are shared objects on your computer, then
using the "noautoimp" ld option should help. I guess that you should read
the ld(1) man page to get precise information about linking.