外部库Modelica_DeviceDrivers仿真出错
一般问题
发布于 2025-07-22 12:09:56
查看 29过去341天
你好,附件是外部库完整内容,运行串口例程时出错,错误为
D:/MWORKS.Sysplorer 2024b ST/Sysplorer 2024b/Simulator/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.4/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lrt
collect2.exe: error: ld returned 1 exit status
Linking the model (gcc) failed.
且建模界面也会显示
生成代码耗时: 00:00:01.113138
生成代码完成
---- 翻译完毕 ----
---- 生成求解器 ----
生成求解器失败. 生成 MWSolver.dll 文件未能成功.
模型"Modelica_DeviceDrivers.Blocks.Examples.tset1"编译失败。
请问如何解决?
所属专栏:模型库
产品信息:Sysplorer系统建模仿真环境