gpt4 book ai didi

clojure - 为什么我会收到 "No namespaces to :aot compile listed in project.clj."警告?

转载 作者:行者123 更新时间:2023-12-04 15:02:42 24 4
gpt4 key购买 nike

我在 Ubuntu 1.04 上使用 lein 1.6.2,并创建了一个裸项目。我不明白为什么我得到

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

当我输入留置权编译时出错。

项目.clj

(defproject amr_db "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:dependencies [[org.clojure/clojure "1.3.0"]
[korma "0.2.1"]])

core.clj(到目前为止)
(ns amr_db.core
(:gen-class))

如何清除警告?

最佳答案

将这样的一行添加到您的 project.clj

:main amr_db.core

如果编译的 jars 不是主要的,你可能也想要这样的东西。
:aot [amr_db.core amr_db.another_example]

关于clojure - 为什么我会收到 "No namespaces to :aot compile listed in project.clj."警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9102290/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com