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: ![enter image description here](https://community.wolfram.com//c/portal/getImageAttachment?filename=Image0.png&userId=3198180)
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):
![enter image description here](https://community.wolfram.com//c/portal/getImageAttachment?filename=Image1.png&userId=3198180)
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: ![enter image description here](https://community.wolfram.com//c/portal/getImageAttachment?filename=Image3.png&userId=3198180)
And when I simulate the class I have the following error : ![enter image description here](https://community.wolfram.com//c/portal/getImageAttachment?filename=Image4.png&userId=3198180)
Thanks for your help, Alexandre