Hello,
I can’t manage to create a DLL containing a basic function and use it in a System Modeler Model. Could somebody help me to identify what’s wrong with the following procedure ?
I wrote inside a “FunctionsDLL.c” file a unique basic function “ RhoH2OTempDLL “, calculating the water volumic mass from temperature: 
I did compile this file using the “x64 Native Tools Command Prompt” in my Visual Studio 2022 menu below (I don't have the IDE):

With the command: cl.exe /LD FunctionsDLL.c
The dll file is created in the rigth directory.
I wrote in my System Modeler library a function calling the dll file: 
And when I simulate the class I have the following error : 
Thanks for your help, Alexandre