controllab / fmi-export-20sim

FMI export code generation template for 20-sim
GNU General Public License v3.0
3 stars 4 forks source link

Source code FMUs should define FMI2_FUNCTION_PREFIX #27

Closed margro closed 7 years ago

margro commented 7 years ago

Section 2.1.1 of the FMI 2.0 standard describes that FMUs shipped with source code should define the FMI2_FUNCTIONPREFIX as "theFMUname".

The 20-sim generated FMUs contain both binaries for Windows and the source code. The generated source code should set this define.

margro commented 7 years ago

Challenge is that the INTO-CPS FMU builder should still be able to build the FMU binaries for the sources without this prefix. Defining FMI2_FUNCTION_PREFIX="" (empty) does not work since the default FMI2 headers skip the DLL function export when the FMI2_FUNCTION_PREFIX define is set (even when it is empty)