Skip to content

Linker Errors When Using Official ExternalMedia Library in Dymola #116

@SpringSun-maker

Description

@SpringSun-maker

I'm encountering linker errors when running an example model using the official ExternalMedia library in Dymola. The errors indicate that certain functions (e.g., TwoPhaseMedium_getCriticalPressure_C_impl, TwoPhaseMedium_getCriticalTemperature_C_impl, and TwoPhaseMedium_getMolarMass_C_impl) cannot be found during the linking stage, even though I'm using the official library provided by the developers.
C:\Users\New\AppData\Local\Temp\ccnpWuXq.o:dsmodel.c:(.text+0x14c8d): undefined reference to TwoPhaseMedium_getCriticalPressure_C_impl' C:\Users\New\AppData\Local\Temp\ccnpWuXq.o:dsmodel.c:(.text+0x14cef): undefined reference to TwoPhaseMedium_getCriticalTemperature_C_impl'
C:\Users\New\AppData\Local\Temp\ccnpWuXq.o:dsmodel.c:(.text+0x14d4d): undefined reference to `TwoPhaseMedium_getMolarMass_C_impl'
collect2.exe: error: ld returned 1 exit status
Background Information
Dymola Version: Dymola 2023.x
Operating System: Windows 10
Compiler: MinGW-w64/32
This issue persists despite using different compilers (MinGW and Visual Studio 2022) and rebuilding the ExternalMedia.dll file
Has anyone else faced similar issues while using the official ExternalMedia library in Dymola? Are there any additional configuration steps or solutions that can help resolve these persistent linker errors? Any insights or suggestions would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions