I am trying to call a Fortran code in simulink by writing S function.
But first I am trying my hands on the Simulink built-in example "sfun_atmos_sub.f", sfun_atmos.c"
Where "sfun_atmos_sub.f" is a computational routine, and "sfun_atmos.c" is a Gateway routine.
When I try to compile "sfun_atmos_sub.f", I get the following error:
LINK : fatal error LNK1104: cannot open file 'ucrt.lib'
I am using Matlab 2018a with following compilers:
'Microsoft Visual C++ 2017 (C)
Intel Parallel Studio XE 2015 for Fortran with Microsoft Visual Studio 2015.
What could be the reason for the above error.
Thanks!