我正在尝试将 gjh 求解器(用 C 编写)编译成 Windows 中的可执行文件。它在 netlib上可用
我下载了 c 文件,并在 Windows 的命令提示符下通过 WinGW 使用 gcc 编译器。尝试直接编译 gjh.c 文件给了我一个错误,上面写着:
gjh.c:33:21: fatal error: getstub.h: No such file or directory
#include "getstub.h"
compilation terminated.
我假设编译gjh.c
需要依赖getstub.h
。
getstub.h
不是唯一需要的依赖项,还有其他依赖项,即:arith.h
、asl.h
、funcadd.h
和stdio1.h
. 所有这些文件都可以在我找到的同一个链接上找到getstub.h
。但是,arith.h0
和stdio1.h0
可以代替arith.h
and stdio1.h
。
这些文件是一样的吗?我尝试将 .h0 文件重命名为 .h 并尝试编译gjh.c
,但出现此错误:
collect2.exe:错误:ld 返回 1 退出状态
两个文件一样吗?如果没有,我有什么办法可以将 gjh 求解器成功编译成 .exe?