Article View: fj.net.ldap
Article #314OpenLDAP & Howes/Smith Programming LDAP book...
From: MC
Date: Sun, 02 Jul 2000 00:00
Date: Sun, 02 Jul 2000 00:00
36 lines
1794 bytes
1794 bytes
Hello, I just completed installing the OpenLDAP kit. Went over the Quick Guide and everything seems to be working fine. My next step was to learn how to program using the LDAP API, so I went out and purchased Howes/Smith book, "LDAP, Programming Directory-Enabled Applications with Lightweight Directory Access Protocol", from Macmillan Technical Publishing. I typed in one of the sample programs on Ch2, but when I try to compile it I'm getting all kinds of errors on ldap.h. I discovered that if I switch the order of the header files I get less errors. My current order is: #include <portable.h> #include <lber.h> #include <ldap.h> #include <stdio.h> My list of errors is finally down to 5, which are: undefined reference to 'ldap_init' undefined reference to 'ldap_simple_bind_s' undefined reference to 'ldap_perror' undefined reference to 'ldap_unbind' undefined reference to 'ldap_unbind' ...I'm currently looking at the header files to see what's wrong. I'm working on a RedHat Linux 5.2 box with the cc compiler. Anyone has any clues? Thanks, MCruz
Technical Details
Message-ID:
<395EB791.EDEDC9CF@rochester.rr.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103627,b5cd89d807434c19,start X-Google-Attributes: gid103627,public From: MC <mcruz@rochester.rr.com> Subject: OpenLDAP & Howes/Smith Programming LDAP book... Date: 2000/07/02 Message-ID: <395EB791.EDEDC9CF@rochester.rr.com> X-Deja-AN: 641382760 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rochester.rr.com X-Trace: typhoon.nyroc.rr.com 962508567 24.24.44.204 (Sat, 01 Jul 2000 23:29:27 EDT) Organization: Time Warner Road Runner - Rochester NY MIME-Version: 1.0 NNTP-Posting-Date: Sat, 01 Jul 2000 23:29:27 EDT Newsgroups: fj.net.ldap