
|
84781 packages online
|
|
 |
|
|
|
No screenshot available
|
Short: | dlopen() etc elf.lib wrapper for SObjs |
Author: | chris unsatisfactorysoftware.co.uk (Chris Young) |
Uploader: | chris unsatisfactorysoftware co uk (Chris Young) |
Type: | dev/lib |
Version: | 2.6.3in |
Architecture: | ppc-amigaos |
Date: | 2009-01-28 |
Requires: | OS4.1 SDK |
Download: | dev/lib/libdl.lha - View contents | Readme: | dev/lib/libdl.readme |
Downloads: | 1402 |
|
This is a native libdl for OS4 which implements the following
functions:
void *dlopen(const char *,int);
void *dlsym(void *,const char *);
int dlclose(void *);
char *dlerror(void);
These are compatible with the Linux versions, and implemented
via a wrapper to elf.library.
INSTALLATION
============
Copy libdl.a to SDK:local/newlib/lib/
Copy dlfcn.h to SDK:local/newlib/include/
NB: There is a libdl.so included with OS4, you can use this
instead by additionally executing the following command:
makelink sdk:local/newlib/lib/libdl.so sobjs:libdl.so soft
I've included my libdl.so for comparison, but it is not
necessarily a drop-in replacement.
USAGE
=====
In your code, include dlfcn.h:
#include <dlfcn.h>
When compiling, you must link with the following arguments:
-ldl -lauto -use-dynld
To build shared objects, compile with -fPIC and link with -shared
The dlopen_passV0.0.1 directory contains an example of how to use
the library (this is an open source example of which I have only
modified the makefile)
----
Please note the primary download location for my software is Aminet
(http://www.aminet.net). If you obtained this archive from anywhere
else, please check Aminet for newer versions.
As usual, I can and will not accept responsibility for any damage,
loss of data etc incurred through use of this software. This archive
is provided "as-is" without warranty of any kind and all use is at
your own risk.
Please check the PGP signature in the Aminet readme against the
archive to ensure it has not been tampered with.
-----BEGIN PGP MESSAGE-----
Version: 2.6.3in
iQB7AwUASXySz7O1+24s2ZO5AQE7BwMsCBYFC2ZRaDpDJybNdTHWpPhc6wZKI6Un
c0aqjDPcBgCLnIn4Ff+MDthU3a414+C7EyAKpqcT+o8hnzooWWdk6tQtFPWpitdb
hq4zB+sZ95opnXLRyccF+zuH7kIl3PPw+BpEFePB
=BZK9
-----END PGP MESSAGE-----
|
Contents of dev/lib/libdl.lha
PERMSSN UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 289 489 59.1% -lh5- 4f52 Jan 24 21:21 libdl/dlfcn.h
[generic] 6167 15882 38.8% -lh5- e29f Apr 20 2004 libdl/dlopen_passV0.0.1/COPYING
[generic] 313 585 53.5% -lh5- bf16 Apr 20 2004 libdl/dlopen_passV0.0.1/cos.c
[generic] 509 1239 41.1% -lh5- 757a Jan 24 21:12 libdl/dlopen_passV0.0.1/dlopen.c
[generic] 192 357 53.8% -lh5- 4438 Jan 24 21:09 libdl/dlopen_passV0.0.1/Makefile
[generic] 164 327 50.2% -lh5- eee8 Apr 20 2004 libdl/dlopen_passV0.0.1/plugin.c
[generic] 0 0 ****** -lh0- 0000 Apr 20 2004 libdl/dlopen_passV0.0.1/README
[generic] 936 2476 37.8% -lh5- f3af Jan 24 21:17 libdl/libdl.a
[generic] 959 1819 52.7% -lh5- 37e6 Jan 25 16:22 libdl/libdl.readme
[generic] 5633 6238 90.3% -lh5- 1bdb Jan 25 15:03 libdl/libdl.readme.info
[generic] 1657 4166 39.8% -lh5- 04c5 Jan 25 15:59 libdl/libdl.so
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 11 files 16819 33578 50.1% Jan 28 06:06
|
|
|
 |
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |