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

Re: how to compile



On Thu, Nov 27, 2003 at 03:20:45PM +0530, Vadiraj C S wrote:

>           I'm not sure if this mailing list allows this type of questions. 
> I need to use the ldap API's in my c program. I get undefined reference error
> while compiling my program. 

You need to tell the linker to include the relevant libraries. On
Unix-like systems that normally means adding flags like this:

	-lldap -llber

Depending on the options used when building OpenLDAP in the first
place you may also need other libraries, such as:

	-lsasl2  -lssl -lcrypto

Andrew
-- 
-----------------------------------------------------------------------
|                 From Andrew Findlay, Skills 1st Ltd                 |
| Consultant in large-scale systems, networks, and directory services |
|     http://www.skills-1st.co.uk/                +44 1628 782565     |
-----------------------------------------------------------------------