title: Clojure function will not compile
body: <p>Please excuse my complete lack of knowledge, but why doesn't this function compile?</p>
  
  <pre><code>(defn add-onehundred
    [num]
      (+ num 100))
  
    (add-onehundred 5)
  </code></pre>
  
  <p>I get this error thrown in the terminal:</p>
  
  <pre><code>Exception in thread "main" Syntax error compiling at (/private/var/folders/ls/j5fjkkb96mx340pb_gm12t740000gn/T/form-init13922061526950471210.clj:1:126).
          at clojure.lang.Compiler.load(Compiler.java:7647)
          at clojure.lang.Compiler.loadFile(Compiler.java:7573)
          at clojure.main$load_script.invokeStatic(main.clj:452)
          at clojure.main$init_opt.invokeStatic(main.clj:454)
          at clojure.main$init_opt.invoke(main.clj:454)
          at clojure.main$initialize.invokeStatic(main.clj:485)
          at clojure.main$null_opt.invokeStatic(main.clj:519)
          at clojure.main$null_opt.invoke(main.clj:516)
          at clojure.main$main.invokeStatic(main.clj:598)
          at clojure.main$main.doInvoke(main.clj:561)
          at clojure.lang.RestFn.applyTo(RestFn.java:137)
          at clojure.lang.Var.applyTo(Var.java:705)
          at clojure.main.main(main.java:37)
  Caused by: java.lang.Exception: Cannot find anything to run for: clojure-noob.core
          at user$eval140.invokeStatic(form-init13922061526950471210.clj:1)
          at user$eval140.invoke(form-init13922061526950471210.clj:1)
          at clojure.lang.Compiler.eval(Compiler.java:7176)
          at clojure.lang.Compiler.eval(Compiler.java:7166)
          at clojure.lang.Compiler.load(Compiler.java:7635)
          ... 12 more
  </code></pre>
  
  <p>full code as in the editor here, when main is commented out it will not compile, when it isn't commented out <code>add-onehundred</code> returns nothing:</p>
  
  <pre><code>(ns clojure-noob.core
    (:gen-class))
  
  ; (defn -main
  ;   "I don't do a whole lot ... yet."
  ;   [&amp; args]
  ;   (println "Hello, Mate"))
  
  (defn add-onehundred
    [num]
      (+ num 100))
  
  (add-onehundred 5)
  </code></pre>