Join GitHub today
Who shall define the prefix for source code FMUs? #420
Reported by cbertsch on 5 Jun 2017 15:26 UTC
Citing from the FMI 2.0 Standard p.14:
I am wondering, if the prefix shall be defined in the source code (as I have done it in the reference FMUs now) or by the importing tool in the compile command with something like
(Visual Studio specific: (https://msdn.microsoft.com/en-us/library/aa235412%28v=vs.60%29.aspx) or -D for gcc https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html)
The advantage of this solution would be, that multiple instances of the same source-code FMU could be compiled and that the same C-Code code could also be used to create a dynamic link library (e.g. for a different OS)
Or do I get something wrong?
Comment by andreas.junghanns on 5 Jun 2017 15:31 UTC
This is something to be clarified/defined for the next standard version.
The specification states that the function prefix must be the modelIdentifier in the xml
This partially contradicts the second options.