On linux, after successfully building the Matlab interface to Nomad (cmake commands) and setting the Matlab path to where the NOMAD libraries are located (Matlab addpath command) we can obtain the following error

This can happen even if the version of the gcc version matches the one recommended for the Matlab version at hand.
In the above example, I used gcc 11.4.1 (Red Hat 11.4.1-2) and Matlab 2023b.