Hi Timo,
I added the -shared flag in revision 9235. However the lib -linteractive
is still called, but for the fmu export I guess this is not necessary
cause the interactive mode is only for the executable. I guess it should
not be to complicated to remove the dependencies for the fmu export.
Best Wishes,
Jens
Am 03.06.2011 14:56, schrieb Timo Penndorf:
Hello,
I use OpenModelica, revision 9184.
when working with fmu export I noticed that a XYZ.so is created but I
cannot open it with dlopen. The error message says this happens because
XYZ.so is an executable.
Looking at the XYZ_FMU.makefile I miss the option "-shared" passed to
the linker to create a shared library. I have modified the makefile and
I also had to remove the -linteractive, because this seems not to be
compiled with -fPIC.
After this I was able to load the XYZ.so via dlopen.
Timo