Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Clojure 为什么我会得到“一个”;project.clj中没有列出要编译的名称空间;警告_Clojure - Fatal编程技术网

Clojure 为什么我会得到“一个”;project.clj中没有列出要编译的名称空间;警告

Clojure 为什么我会得到“一个”;project.clj中没有列出要编译的名称空间;警告,clojure,Clojure,我正在Ubuntu 1.04上使用Lein1.6.2,并创建了一个裸项目。我搞不懂为什么我会被解雇 “project.clj中未列出要:aot编译的命名空间。” 输入编译时出错 project.clj (defproject amr_db "1.0.0-SNAPSHOT" :description "FIXME: write description" :dependencies [[org.clojure/clojure "1.3.0"] [korma "

我正在Ubuntu 1.04上使用Lein1.6.2,并创建了一个裸项目。我搞不懂为什么我会被解雇

“project.clj中未列出要:aot编译的命名空间。”

输入编译时出错

project.clj

(defproject amr_db "1.0.0-SNAPSHOT"
  :description "FIXME: write description"
  :dependencies [[org.clojure/clojure "1.3.0"]
                [korma "0.2.1"]])
:main amr_db.core
core.clj(到目前为止)


如何清除警告?

在project.clj中添加类似的行

(defproject amr_db "1.0.0-SNAPSHOT"
  :description "FIXME: write description"
  :dependencies [[org.clojure/clojure "1.3.0"]
                [korma "0.2.1"]])
:main amr_db.core
如果编译的jar不是main,那么您可能还需要这样的东西

:aot [amr_db.core amr_db.another_example]

非常感谢。我搜索过类似的东西,只发现不需要aot编译,也不需要如何编译。再次感谢。这里的“如果编译的jar不是main”是什么意思?