Opened 7 years ago

Last modified 7 years ago

#4707 new defect

Wrong symbols naming in FMU import library

Reported by: dariomangoni@… Owned by: Lennart Ochel
Priority: high Milestone: Future
Component: FMI Version: v1.13.0-dev-nightly
Keywords: symbols Cc:

Description

The binaries/win64/<modelname>.lib import library is broken.
The symbols in the import library (.lib) do not match those in the shared library (.dll).

In the .dll: fmi2Instantiate
In the .lib: <modelname>_fmiInstantiate

Recompiling from FMU sources with adding '--output-def=<modelname>.def' as I suggested https://trac.openmodelica.org/OpenModelica/ticket/4706 to the compiler flags solves the problem.

Change History (1)

comment:1 by dariomangoni@…, 7 years ago

Sorry, forgot a piece: it must be '-Wl,--output-def=<modelname>.def'

Note: See TracTickets for help on using tickets.