lein -U uberjar
Compiling afterglow.max.core
Compiling afterglow.max.Cue
Compiling afterglow.max.Eval
Compiling afterglow.max.init
Compiling afterglow.max.Metro
Exception: java.lang.UnsatisfiedLinkError thrown from the UncaughtExceptionHandler in thread "main"
Compilation failed: Subprocess failed
Uberjar aborting because jar failed: Compilation failed: Subprocess failed
Error encountered performing task 'uberjar' with profile(s): 'base,system,user,provided,dev,update'
Uberjar aborting because jar failed: Compilation failed: Subprocess failed
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/yONboCAt-UA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Indeed, I visited the page you cite while trying to pin down this problem. However, I am fairly certain that in my case it is a weird side effect, not a root cause: I get that message when compiling my Clojure file if I try to call a function which is defined later in the file. If I move the function definition up before the point where I was calling it, everything compiles fine, and no linkage error. No library
Wow, that is a challenge, Alex! I would have no idea how to even compile a project without Leiningen. If I ever am not using 200%
Ah--if that's the problem, it sounds familiar. Try doing 'lein clean' before 'lein compile' and see whether you get the same error. That's assuming you have namespaces/classes listed after :aot in project.clj. (If not, then I don't think that 'lein compile' is actually doing anything.)
You probably know this, but: When using Java classes, whether defined by gen-class or one of the other four ways to define classes (defrecord, deftype, proxy, reify), Clojure is very persnickety about compilation order. A class has to be compiled before you can compile something that explicitly references it. (No cyclic dependencies between explicit references to classes.)
afterglow.max.core=> (compile 'afterglow.max.Metro)CompilerException java.lang.RuntimeException: Unable to resolve symbol: set-bar in this context, compiling:(afterglow/max/Metro.clj:121:7)