【发布时间】:2012-12-27 11:06:31
【问题描述】:
我正在尝试将 lwt 模块与 Ocaml 一起使用
%cat .ocamlinit
#use "topfind";;
#require "lwt.simple-top";;
#require "lwt.syntax";;
#require "findlib";;
#require "num.core";;
#load "nums.cma";;
#load "unix.cma";;
#camlp4o;;
open Lwt;;
open Lwt_io;;
当我尝试使用任何 Lwt API 使用此命令进行构建时 “ocamlbuild -use-ocamlfind myFile.native”
我收到此错误: “错误:未绑定模块 Lwt”
当我输入终端 %ocaml 时,它会成功加载,我可以使用 Lwt.API 的
发生了什么事?有什么建议吗?
【问题讨论】:
标签: ocaml