[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DLLs under Linux

Felix Kollmann <fkollmann@gmx.net> writes:

> how can I load a library after the programme started?
> I think of Q3A and the Mesa, GLX, etc. interfaces.
> I don't think they use dlopen() .

If you just want to link your program dynamically, so that not all the
library code goes into the binary than that is done with shared
libraries (*.so), that is the default for most libraries and nothing
most people should care about (only if they want to distribute binaries).

If you want to dynamically load code while the program is running, for
example to have a flexible AI or custom objects, then you should use
dlopen(), the man pages gives a good example.

                                  http://dark.x.dtu.dk/~grumbel/pingus/ | 
Ingo Ruhnke <grumbel@gmx.de>             http://home.pages.de/~grumbel/ |