Skip to content

MinGW compilation error for Dymola model using ExternalMedia #112

Description

@neo20240815

Hi there,

I'm using MinGW 8.1 in Dymola2024x (windows11) but failed to compile my model using ExternalMedia 4.0.0,
with the following errors.

Compiling and linking the model (GCC).
C:\Users\nnuuurr1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x1404d): undefined reference to TwoPhaseMedium_setState_ph_C_impl_err' C:\Users\nnuuurr~1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x140ac): undefined reference to TwoPhaseMedium_setState_pT_C_impl_err'
C:\Users\nnuuurr
1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x1462e): undefined reference to TwoPhaseMedium_getCriticalMolarVolume_C_impl' C:\Users\nnuuurr~1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x1468c): undefined reference to TwoPhaseMedium_getCriticalMolarVolume_C_impl'
C:\Users\nnuuurr1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x146ee): undefined reference to TwoPhaseMedium_getCriticalPressure_C_impl' C:\Users\nnuuurr~1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x14750): undefined reference to TwoPhaseMedium_getCriticalPressure_C_impl'
C:\Users\nnuuurr
1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x147b2): undefined reference to TwoPhaseMedium_getCriticalTemperature_C_impl' C:\Users\nnuuurr~1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x14814): undefined reference to TwoPhaseMedium_getCriticalTemperature_C_impl'
C:\Users\nnuuurr1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x14872): undefined reference to TwoPhaseMedium_getMolarMass_C_impl' C:\Users\nnuuurr~1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x148d0): undefined reference to TwoPhaseMedium_getMolarMass_C_impl'
C:\Users\nnuuurr
1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x14c68): undefined reference to TwoPhaseMedium_setState_pT_C_impl' C:\Users\nnuuurr~1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x14d9c): undefined reference to TwoPhaseMedium_setState_pT_C_impl'
C:\Users\nnuuurr~1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x17e5c): undefined reference to TwoPhaseMedium_setSat_p_C_impl' C:\Users\nnuuurr~1\AppData\Local\Temp\cclUKu7g.o:dsmodel.c:(.text+0x17f5e): undefined reference to TwoPhaseMedium_setSat_p_C_impl'
collect2.exe: error: ld returned 1 exit status
Error generating dymosim.exe.

Thanks,
neo20240815

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions