unlink/unload a dynamically linked shared object
ulink(x) ulink()
a ID returned by link
see link
If you plan to use valgrind
to profile
your module, you must first set the environment
variable PROFILE_SCILAB_DYNAMIC_LINK
before
starting scilab:
This environment variable force Scilab not to release the
loaded dynamic libraries. This will
allow valgrind
to perform its sum-up analysis.
cd TMPDIR f1=['#include <math.h>' 'void fooc(double c[],double a[],double *b,int *m,int *n)' '{' ' int i;' ' for ( i =0 ; i < (*m)*(*n) ; i++) ' ' c[i] = sin(a[i]) + *b; ' '}']; mputl(f1,'fooc.c'); ilib_for_link('fooc','fooc.c',[],"c"); exec loader.sce; link() // Will should fooc link("show") // Will should the value 0 ulink(0) // ulink fooc | ![]() | ![]() |