Dynamic link
The Dynamic Link module enables Nelson to build, load, and call C/C++ and Fortran code at runtime.
It supports generating gateways, loaders, and managing shared libraries for integration with external compiled code.
By default, Nelson does not try to detect a C/C++ compiler on Windows. Do not forget to run 'configuremsvc' or 'configuremingw' once.
Functions
- Build C/C++ code on the fly - Build C/C++ code on the fly 
- libpointer datatype - C/Nelson equivalent data types 
- cmake - call CMake tool 
- configuremingw - Configure Nelson to use MinGW as default C compiler 
- configuremsvc - Configure Nelson to use visual studio as default compiler 
- dlcall - C or Fortran Foreign function call. 
- dlclose - Removes dllib object. 
- dlgeneratecleaner - Generates cleaner.m file for C++ gateway. 
- dlgenerategateway - Generates C++ gateway. 
- dlgenerateloader - Generates loader.m file for C++ gateway. 
- dlgeneratemake - Generates a makefile for building a dynamic library. 
- dlgenerateunloader - Generates unloader.m file for C++ gateway. 
- dlgetnelsonincludes - Returns paths of Nelson include directories. 
- dlgetnelsonlibraries - Returns paths to Nelson library files. 
- dllib_used - Returns list of current used dllib handle. 
- dllibinfo - Returns list of available symbols in an shared library. 
- dllibisloaded - Checks if shared library is loaded. 
- dlmake - call make or nmake tool 
- dlopen - Loads an dynamic library. 
- dlsym - Loads a C/Fortran symbol for an dynamic library. 
- dlsym_delete - Removes dlsym object. 
- dlsym_used - Returns list of current used dlsym handle. 
- findcmake - find CMake path. 
- getdynlibext - Returns the extension of dynamic libraries. 
- havecompiler - Detect if a C/C++ compiler is configured. 
- libpointer - Creates an C pointer object usuable in Nelson. 
- libpointer_delete - Removes libpointer object. 
- libpointer_isNull - Checks if libpointer handle points on NULL pointer. 
- libpointer_plus - plus operator on libpointer handle. 
- libpointer_reshape - Reshapes libpointer dimensions. 
- libpointer_setdatatype - Set type of an libpointer handle. 
- libpointer_used - Returns list of current used libpointer handle. 
- loadcompilerconf - load compiler configuration. 
- removecompilerconf - Remove used compiler configuration (on Windows). 
- vswhere - Locate Visual Studio 2017, 2019 and newer installations 
Last updated
Was this helpful?
