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

Re: synch_search.c



 Hi
> 
> On Thu, Jun 27, 2002 at 07:26:34PM +0300, anmais@in.gr wrote:
> > Hi,
> > I tried the command 'ldapsearch -x -b.....' to search  my base and it works good.
> > However i made a program in C for searching as below.
> > I typed "gcc -c synch_search.c" to make it objective.So far good.When I tried to make it executable by typing
> > "gcc synch_search.o -o synch_search.exe" I had these errors
> > synch_search.o:In function 'main':
> > synch_search.o (.text+0x45):undefined reference to 'ldap_init'
> > synch_search.o (.text+0x50):undefined reference to 'ldap_search_ext_s'
> > synch_search.o (.text+0x9e):undefined reference to 'ldap_search_ext'
> > synch_search.o (.text+0xd7):undefined reference to 'ldap_count_entries'
> > synch_search.o (.text+0x30):undefined reference to 'ldap_next_attribute'
> > 
> 
 you need to link your program with ldap libraries
 try gcc ..... -lldap -llber
> 
> 			Dumber 


-- 
------------------------------------------------ 
Sure, I'm paranoid! But am I paranoid enough? ;)
Tomas Hornicek  
Operation & Maintenance Administration  
Orange Slovensko a.s.
tomas.hornicek@orange.sk

- - - - - BEGIN GEEK CODE BLOCK - - - - -
Version: 3.12
http://www.geekcode.com
GCS/IT d- s+:+ a-- C++ UL++++$B++++S++++$ P- L+++ 
E--- W+++ N++ !o K- w O M- V- PS !PE Y PGP+++ !t 
!5 X !R tv-- b+ DI D+ G e h* r- y+
- - - - - END GEEK CODE BLOCK - - - - -