LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2002, 02:55 AM   #1
Jamesminh
LQ Newbie
 
Registered: May 2002
Location: Vietnam
Posts: 13

Rep: Reputation: 0
Angry LDAP Programming on Linux


Dear sir,

I am attempt wrote a simple LDAP example. That content 9 line below:

#include <stdio.h>
#include <ldap.h>

int main()
{
LDAP *ld;
ld=ldap_open("localhost",LDAP_PORT);
exit(0);
}

and compile it using:
gcc test.c -o test /with test.c is this source file/

But they have a error:
/tmp/cc6Bk4vA.o: In function 'main':
/tmp/cc6Bk4vA.o(.text+0x14): undefined reference to 'ldap_open'
collect2: ld returned 1 exit status.

This message will arrival agian with any ldap function. I had test it on SuSE 7.1 and RedHat 7.1 but the result is the same like above. Please help me if you now why this happen.

Thank you very much

Cam Minh
 
Old 05-06-2002, 05:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
http://www.linuxquestions.org/questi...threadid=20280
please don't double post
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP: Can't contact master ldap server rulirahm Linux - Networking 2 07-14-2014 03:02 AM
LDAP server not starting as user LDAP klnasveschuk Fedora 1 02-15-2007 05:49 AM
ldap-abook unable to get street name in ldap-entry Jingle Linux - Software 1 06-06-2004 08:13 PM
LDAP Programming on Linux Jamesminh Programming 2 05-19-2002 03:35 PM
LDAP Programming on Linux Jamesminh Linux - General 1 05-06-2002 05:37 AM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration