我正在使用沙丘建立一个演示项目,并想将可执行文件命名为“ hello-world.exe”,而不是“ hello_world”。如果我尝试构建项目,则会出现编译器错误。如何在文件名中声明带有连字符的可执行文件?
我正在使用沙丘1.9.3和OCaml 4.05.0。
沙丘:
mkdir: cannot create directory ‘OUTDIR’: File exists
first.sh: line 17: ./DATA/share/pipelines/script.R: No such file or directory
first step is done
hello-world.ml
(executable
(name hello-world))
构建错误
let () = print_endline "Hello, World!"
答案 0 :(得分:3)
您需要禁用警告24:
height: 100%
或者只是
(executable (name hello-world) (flags (:standard -w -24)))
如果您想保留警告