> Normaly a program is compiled in two stages. First the Code is compiled
> which gives the *.o files. When all needed *.o files are compiled the
> linker builds with those *.o files and the specified libraries (all the
> -llib flags) the applications. Now if a library or a *.o file is missing
> the program can not be built because the functions programmmed in this c
> file or library can not be found so the linker (ld) produces the error:
> <file where the unkown function is used>: undefined reference to <function>
Yeah, I understand how the compiling part is done with C programs.

> 
> And befor you try to start qmail-ldap after a successful make setup check
> read the section about shared libraries of
> http://www.lifewithqmail.org/ldap
Thanks! I will read it carefully! =)

> 
> A side note: it is not needed to add $(LDAPLIBS) to ./compile calls or
> $(LDAPINCUDES) to ./load calls. While compiling (cc -c / ./compile) no
> libraries are necessary and in the linking pahse (ld / ./load) no include
> files are needed.
I know this too.. and now I double checked the target for qmail-qmtpd..
I don't know why, but I specified $(LDAPINCLUDES) instead of $(LDAPLIBS)
to the load statement for qmail-qmtpd :)
I knew this problem was smaller than I could imagine  .. heh. 

Thanks alot!

Regards,
Johan Andersson

Reply via email to