使用Makefile在Eclipse上编译OCAML也不会发生任何文件错误

发布于 2025-01-25 18:07:26 字数 991 浏览 2 评论 0原文

当我尝试用makefile编译我的项目时,它会显示出错误,即即使存在相同的路径,也没有文件lang.ml。看来make.exe无法完全识别项目中的文件内容。 输入目录/home/mario/eclipse/sizhtment/miniml_skel文件夹可能存在问题,但是我找不到如何检查或manange make.exe 实际经历。 但是,项目的绝对路径是c:/ocaml64/home/home/home/mario/eclipse/tossment/miniml_skel和工作空间设置为c:/ocaml64/ocaml64/home/home/mario/eclipse/eclipse/tosisment < /代码>。 我将此项目创建为ocaml空的makefile项目,并从其他一些文件夹中导入目录文件。

请注意,如果我单独编译lang.ml并创建lang.cmo文件,则使过程正常检测并继续。

enter image description here

When I try to compile my project with Makefile, it keeps show error that there is no file lang.ml even if there is in same path. It seems that make.exe can't totally recognize the file contents in projects.
Maybe there is problem with entering directory /home/mario/eclipse/assignment/miniML_skel folder, but I can't find the way how to check or manange the path where make.exe actually gone through.
However, the absolute path of project is C:/OCaml64/home/mario/eclipse/assignment/miniML_skel and workspace is set as C:/OCaml64/home/mario/eclipse/assignment.
I create this project as an Ocaml Empty Makefile Project and import contents file from some other folder.

enter image description here

enter image description here

Here is paths of preference and project.

Note that if I compile lang.ml separately and create lang.cmo file, then make process normally detect it and continue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文