I want to use my own c library in my model. I use it now with Dymola but I also want to use it in OpenModelica.
Here are the current code.
CODE
function MyFunc
input SI.Length l;
input SI.Radius r;
input SI.Length b;
output SI.Length myfunc;
// external "C" myfunc=myfunc(l,r,b) annotation(Library="../vendor/libmylib.a",Include="#include \"../vendor/mylib.h\"");
external "C" annotation(Library="mylib",Include="#include \"mylib.h\"");
end Hub;
The problem is, that i don't want to copy the lib and the header in the Dymola directory. I want to use th relative path to that files (like the comment in the above code block.
Please help me.
When is OpenModelica ready for Modelica 3.0?
Thank you for you help.
Enrico
