I have two interrogations about using external functions with modelica(via dymola):
1/Could we use C++ syntax ? According to my tests, No
I got this error :
C:\Program Files\Microsoft Visual Studio\**\include\yvals_core.h(23): fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler
2/ Basically, modelica can run external C functions.
Usually, we put all of headers/libraries files needed for compilation into Resources directory.
Here The following tree structure:
- Data
- Images
- Include
- *.h
- Library
- win64
- *.dll
- win64
But, I obtained also an error :
dsmodel.obj : error LNK2019: unresolved external symbol * referenced in function *
If you have any idea about this issue !