Flowdock
module
Importance_1
v1_9_3_392 - Show latest stable - 0 notes

DL::Importer includes the means to dynamically load libraries and build modules around them including calling extern functions within the C library that has been loaded.

Example

require 'dl'
require 'dl/import'

module LibSum
  extend DL::Importer
  dlload './libsum.so'
  extern 'double sum(double*, int)'
  extern 'double split(double)'
end
Show files where this module is defined (1 file)
Register or log in to add new notes.