简体   繁体   English

Ocaml。 OcaIDE eclipse中的核心模块

[英]Ocaml. Core module in OcaIDE eclipse

I started programming with Ocaml few days ago. 我几天前开始使用Ocaml进行编程。 I use eclipse OcaIDE, ubuntu. 我用Eclipse OcaIDE,ubuntu。

When I try to use the Core module in a code : open Core.Std ... 当我尝试在代码中使用Core模块时:打开Core.Std ...

I get an error: Error: Unbound module Unix 我收到错误消息:错误:Unix模块未绑定

I tried to create .ocamlinit file with adds: 我试图用添加创建.ocamlinit文件:

#use "topfind";;
#thread;;
#camlp4o;;
#require "core.top";;
#require "core.syntax";;

The same error occurs in eclipse. 在Eclipse中发生相同的错误。 Сode without the use of the modules run fine. 在不使用模块的情况下运行良好。

Please, tell me, what I have to do? 请告诉我,我该怎么办?

Sorry for bad english. 对不起,英语不好。 Thank You for your answers! 谢谢您的回答!

OCaIDE is not wide-spread in OCaml community, so it is not well supported. OCaIDE在OCaml社区中并不广泛,因此没有得到很好的支持。 Try to use emacs or vim. 尝试使用emacs或vim。 If you insist on using OCaIDE, then a good place to start is to view tutorials . 如果您坚持使用OCaIDE,那么开始学习教程是一个不错的选择。

PS Even if you manage to configure OCaIDE it will be still much worse than Emacs+ Merlin . PS即使您设法配置OCaIDE,它仍然比Emacs + Merlin差很多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM