Hi I have ExternalMedia and CoolProp working in OpenModelica but it does not work in Systemmodeler. Its like Systemmodeler can not find the library although the error just says a variable is not declared. This was the error that Openmodelica has before I compiled to a shared library. That fixed the problem there.
Is there a place or way to tell sysytemmodeler to use a shared library.
Unfortunately ExternalMedia uses a construct that requires evaluating external functions during the building of models, since results of such functions are used for constants/structural elements in the model.
System Modeler doesn’t currently support such uses of external functions, so ExternalMedia will not work in current versions of System Modeler.
Thanks for the reply. Given Systemmodeler is meant to be 3.2.3 MSL compliant when do you think it will have this functionality. My company spent a lot on licenses and I would expect if you can select the MSL version it would have the correct functionality.
Blockquote
Is there a place or way to tell sysytemmodeler to use a shared library.
System Modeler more or less only passes the base library name and library path to the linker and at least ld will use the shared one if it exists. I don’t know how it works on Windows, but to be sure I guess you can delete the static one.
You can read about the annotations used for specifying the library name and path here: