利用c函数调用refprop,然后modelica调用c语言函数。将refprop.dll,REFPROP2.H,c函数代码,与模型文件均放在同一文件夹,无中文。报错如下
Compiling and linking the model (gcc).
Compiling...
External include directories:
G:/refprop/Model3
F:/SYSPLORER
F:\SYSPLORER\MwSolver_250109_151628
G:/refprop/Model3
In file included from F:\SYSPLORER\MwSolver_250109_151628\momodel_func.c:18:0:
F:\SYSPLORER\MwSolver_250109_151628\momodel_extern_inc.h:17:21: fatal error: 2025_1_9.c: No such file or directory
#include"2025_1_9.c"
^
compilation terminated.
Compiling the model (gcc) failed.
Compiling and linking the model (gcc).
Compiling...
External include directories:
G:/refprop/Model3
F:/SYSPLORER
F:\SYSPLORER\MwSolver_250109_151628
G:/refprop/Model3
In file included from F:\SYSPLORER\MwSolver_250109_151628\momodel_extern_inc.h:17:0,
from F:\SYSPLORER\MwSolver_250109_151628\momodel_func.c:18:
F:\SYSPLORER\MwSolver_250109_151628\2025_1_9.c:3:22: fatal error: refprop2.h: No such file or directory
#include "refprop2.h"
^
compilation terminated.
Compiling the model (gcc) failed.
Compiling and linking the model (gcc).
Compiling...
External include directories:
G:/refprop/Model3
F:/SYSPLORER
F:\SYSPLORER\MwSolver_250109_151628
G:/refprop/Model3
Linking...
External library directories:
G:/refprop/Model3
F:/SYSPLORER
F:\SYSPLORER\MwSolver_250109_151628
G:/refprop/Model3
External libraries:
refprop
F:/mworks/Sysplorer 2024b/Simulator/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.4/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lrefprop
collect2.exe: error: ld returned 1 exit status
Linking the model (gcc) failed.
Compiling and linking the model (gcc).
Compiling...
External include directories:
G:/refprop/Model3
F:/SYSPLORER
F:\SYSPLORER\MwSolver_250109_151628
G:/refprop/Model3
Linking...
External library directories:
G:/refprop/Model3
F:/SYSPLORER
F:\SYSPLORER\MwSolver_250109_151628
G:/refprop/Model3
External libraries:
{refprop
F:/mworks/Sysplorer 2024b/Simulator/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.4/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -l{refprop
collect2.exe: error: ld returned 1 exit status
Linking the model (gcc) failed.
它显示始终找不到文件。这该如何解决呢。

