Concluding remarks and FAQs > Common problems and their solutions
Compilation failure with error message related to the simstruct.h file
simstruct.h file
Versions
All MATLAB versions under Windows.
Situation
When compiling a Simcenter Amesim system containing interface blocks, the compilation fails and the following error message is displayed in the System Compilation window:
'... simstruc.h: No such file or directory...' , or '... Cannot open include file: 'simstruc.h'...'.
Solution
The file simstruc.h is supplied with the Simulink application and it is stored in a sub-directory of the MATLAB installation directory. This implies that Simulink must be installed with MATLAB and this is the first point to check.
If you get the first message, you must set the MATLAB environment variable so that it points to the MATLAB installation directory. For more details, please refer to Common requirements.
If you have the second message, this is because you have installed MATLAB in a directory which has a blank character in its path (such as Program Files...). In this case, you must uninstall MATLAB and re install it in a directory whose path contains no blank character.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Simulink/Compilation_failure_with_error_message_related_to_the_simstructh_file · retrieved 2026-07-17