#require "batteries";;

问题描述 投票:0回答:1
what is the correct command to compile the program?

#require "batteries";;
#require "Base";;
open Base;;
open Batteries;;
...

i got this in my prog.ml: #require "batteries";; #require "Base";; open Base;; open Batteries;; ... When I try to compile: ocamlc prog.ml -o prg it returns the following error: 1

我在我的prog.ml中得到了这个。

当我试图编译时,

  ^ Error: Syntax error

ocamlc prog.ml -o prg

它返回以下错误。
package syntax-error ocaml
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.