﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4056	DeviceDrivers on Win32 as FMU	Volker Waurich	Lennart Ochel	"Hi,

I created a model using the KeyboardKeyInput from Modelica DeviceDrivers which should be exported as an FMU 1.0 ME to be simulated and visualized in realtime.
OMC cannot compile it because User32 is not found in the omc dirs. If I ship this error the pthreads.dll from the DeviceDrivers Ressources causes undefined references. If this is removed the X11 causes runtime errors in the FMU.

The annotation for the external functions is:
{{{
annotation(Include = ""#include \""MDDKeyboard.h\"""",
Library = {""X11"", ""User32""},
__iti_dll = ""ITI_MDD.dll"",
__iti_dllNoExport = true);
}}}
Removing X11 and User32 fixes the compilation. These things should be available on a windows system anyway. Am I correct?

Otherwise, the Modelica_DeviceDrivers 1.4.4/Resources/Library/win32 dir is added with -L to the makefile. And we get the problems I described.

How can omc handle this? Modifying the lib works but other tools can compile it without modifications.

Any comments?




"	defect	closed	high	Future	Code Generation		fixed		Adrian Pop Willi Braun Martin Sjölund Bernhard Thiele
