Changeset 1796 in Sophya


Ignore:
Timestamp:
Nov 27, 2001, 3:47:06 PM (24 years ago)
Author:
aubourg
Message:

darwin

Location:
trunk/SophyaLib/SysTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/pdlmgr.cc

    r1795 r1796  
    2626  This classes handles the run-time operations related to using shared
    2727  libraries. The present version has been adapted for different Unix
    28   flavours (Linux, Compaq/Digital Unix, SGI IRIX, IBM AIX, Sun Solaris).
     28  flavours (Linux, Compaq/Digital Unix, SGI IRIX, IBM AIX, Sun Solaris,
     29  MacOS X/Darwin).
    2930  The example here shows the linking of shared library named "mylib.so"
    3031  containing a function \c double \c myfunction(double x).
  • trunk/SophyaLib/SysTools/pdlmgr.h

    r895 r1796  
    1212#if defined(HPUX)
    1313#include <dl.h>
     14#elif defined(Darwin)
     15#include <mach-o/dyld.h>
    1416#else
    1517#include <dlfcn.h>
     
    4143#if defined(HPUX)
    4244  shl_t dlhandle;
     45#elif defined(Darwin)
     46  NSObjectFileImage shfim;
     47  NSModule          shmod;
    4348#else
    4449  void * dlhandle;
Note: See TracChangeset for help on using the changeset viewer.