[EMAIL PROTECTED] wrote:

> Hi!
>     I am trying to make a simple C application that can connect and
> access data from a Netscape Directory.  I have downloaded the C ldap sdk
> v5.0 at the iPlanet site.
>    But when i tried using the sample application provided, I can't seem
> to successfully link the objects.
>     Upon issuing the make command under the examples directory.  These
> are the error messages shown.
>
>              gcc -g -I../include -I../include   -c  search.c
>             gcc -o search search.o -L../lib -lldap50 -lsocket -lnsl
>             ld: fatal: library -lldap50: not found
>             ld: fatal: File processing errors. No output written to
> search
>             collect2: ld returned 1 exit status
>             *** Error code 1
>             make: Fatal error: Command failed for target `search'
>
>    I am using gcc, Solaris 2.8 on sparc and using ids5.0.  Am I doing
> anything wrong?  I simply downloaded the zip file, extract and issue the
> make command.  Does someone has any idea  on this one?  Thanks very
> much!

Are you sure your include files are in ../include and the ../lib directory contains 
libldap50.so?

The ldapsdk binaries are built with either Sun WorkShop 4.2 or Forte 6.2.  I think 
these binaries are incompatible with gcc.  If
so, you will have to build the ldapsdk from scratch using gcc.  You can download the 
source code for the ldapsdk from mozilla.
gcc on Solaris is not supported, but you may be able to hack the makefiles and 
possibly some of the code to make it work.

>
>
> Bal


Reply via email to