﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5318	Dynamic linking fails while building FMU	dariomangoni@…	Adrian Pop	"I'm on Win10:

I get this two errors when I link dynamically, with static no errors occur:

{{{
In file included from VehicleMacP_FMU.c:54:0:
include/fmi2/fmu2_model_interface.c: In function 'omc_assert_fmi_common':
include/fmi2/fmu2_model_interface.c:162:16: warning: passing argument 1 of 'GC_vasprintf' from incompatible pointer type [-Wincompatible-pointer-types]
   GC_vasprintf(&str, msg, args);
                ^
In file included from include/openmodelica_func.h:52:0,
                 from VehicleMacP_FMU.c:10:
include/util/modelica_string.h:71:5: note: expected 'const char **' but argument is of type 'char **'
 int GC_vasprintf(const char **strp, const char *fmt, va_list ap);
     ^
}}}

and a lot of undefined references similar to this:

{{{
C:/OpenModelica//lib//omc\libSimulationRuntimeC.a(kinsolSolver.o):kinsolSolver.c:(.text+_____): undefined reference to <symbol>
C:/OpenModelica//lib//omc\libSimulationRuntimeC.a(radau.o):radau.c:(.text+_____): undefined reference to <symbol>
C:/OpenModelica//lib//omc\libSimulationRuntimeC.a(ida_solver.o):ida_solver.c:(.text+_____): undefined reference to <symbol>
}}}

"	defect	closed	normal	Future	FMI	v1.14.0-dev-nightly	fixed		Per Östlund
