OS4 DepotLogo by McFly 
(anonymous IP:,2218) 

   Bug tracker
   Locale browser


   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (600)
   o Document (22)
   o Driver (97)
   o Emulation (148)
   o Game (1005)
   o Graphics (499)
   o Library (116)
   o Network (233)
   o Office (66)
   o Utility (927)
   o Video (69)

Total files: 4379

Full index file
Recent index file



Support the site

 Readme for:  Development » Library » Misc » libdl.lha


Description: dlopen() etc elf.lib wrapper for SObjs
Download: libdl.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 17kb
Version: 2.6.3in
Date: 05 Feb 2009
Author: Chris Young
Submitter: Steven Solie
Email: ssolie/telus net
Requirements: SDK 53.13
Category: development/library/misc
License: Other
Distribute: yes
Min OS Version: 4.0
FileID: 4490
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 597  (Current version)
597  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
This is a native libdl for OS4 which implements the following

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.


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.


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.

Version: 2.6.3in


Copyright © 2004-2024 by Björn Hagström All Rights Reserved