Use the External C Library node (
) to import a compiled native code library based on, for example, C code that you want to include in a method. To add a new
External C Library node, right-click the
Libraries node (
) and choose
External C Library or click the
External C Library button in the ribbon toolbar. Enter a label to display in the
Label field and a name for the external C library in the
Name field.
In the Settings window, expand the sections corresponding to the platforms you intend to support, and then browse and select the shared libraries you want to import. On the Windows® operating system, the file extension of a shared library is typically
DLL, on Linux
® the extension is typically
so, and on macOS it is typically
dylib. Click the
Reload button if you have changed the file in the file system and want to import the new version into the application. Click the
Edit button to select a different file to import into the application.
The Settings window for an
External C Library node contains the following sections.
This section is expanded by default. Click Browse to locate and choose a compiled native code library file (DLL file) for 64-bit Windows®.
Click Browse to locate and choose a compiled native code library file (.so file) for 64-bit Linux®.
Click Browse to locate and choose a compiled native code library file (dylib file) for 64-bit macOS.
By default, the Allow loading on unsupported platform check box is selected so that it is possible to load the shared libraries on platforms that they do not support. On such a platform, an error occurs when you try to access the library from a method. If you clear the check box, you get an error message directly if you try to start the application on an unsupported platform, and the application does not start.