windll

Courageous jkraska1 at san.rr.com
Fri Jun 9 23:29:15 EDT 2000


Jean-Yves Vinet wrote:
> 
> Is there someting like to "windll" to use
> dynamic librairy under Linux/Unix plateform.

What does windll do? "Using" dynamic libraries
under Unix is as easy as linking with them and
then making certain that they are in your
LD_LIBRARY_PATH. Unlike Windows, Unix distinguishes
between finding executibles (which must be in 
$PATH) and finding dynamic libraries (.so files,
which must be in $LD_LIBRARY_PATH).

If you want to know where a .so library is you
type "ldd" on the executable, ala:

% ldd myprog.exe

... and this will tell you which dynamic libraries
your program depends on, and whether or not it is
finding them, and where it is, when it is.

You can use nm to dump a libraries symbol table
if you want, by typing:

% nm mylib.so

... which will yield a complete dump of the symbol
table. Because this is huge, we often type:

% nm mylib.so | grep -i myfunction

... which will yield all those symbols of any case
matching "myfunction" in the library "mylib.so".

If it's building dynamic libraries that you want,
unlike in windows, you don't change the code at all.
Rather, you compile it differently and link it
differently. If you need to know those commands,
just say so.


C/



More information about the Python-list mailing list