Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 321547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:51:21+00:00 2026-05-12T08:51:21+00:00

In common lisp I can do this: src-> (defmacro macro-hello () `hello) (eval ‘(macro-hello))

  • 0

In common lisp I can do this:

src-> (defmacro macro-hello ()
`”hello”)

(eval ‘(macro-hello))

no problem.

In clojure:

(defmacro macro-hello []
`”hello”)

(eval ‘(macro-hello))

gives me an error. Have I done something wrong?

Clojure Error:

Exception in thread “main” java.lang.Exception: Unable to resolve symbol: macro-hello in this context (NO_SOURCE_FILE:12)
at clojure.lang.Compiler.analyze(Compiler.java:4340)
at clojure.lang.Compiler.analyze(Compiler.java:4286)
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:2767)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:4498)
at clojure.lang.Compiler.analyze(Compiler.java:4325)
at clojure.lang.Compiler.analyze(Compiler.java:4286)
at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:3862)
at clojure.lang.Compiler$FnMethod.parse(Compiler.java:3697)
at clojure.lang.Compiler$FnMethod.access$1100(Compiler.java:3574)
at clojure.lang.Compiler$FnExpr.parse(Compiler.java:2963)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:4494)
at clojure.lang.Compiler.analyze(Compiler.java:4325)
at clojure.lang.Compiler.eval(Compiler.java:4530)
at clojure.core$eval__3990.invoke(core.clj:1728)
at com.yourcompany.defpackage$_main__4.invoke(defpackage.clj:12)
at clojure.lang.AFn.applyToHelper(AFn.java:171)
at clojure.lang.AFn.applyTo(AFn.java:164)
at com.yourcompany.defpackage.main(Unknown Source)
Caused by: java.lang.Exception: Unable to resolve symbol: macro-hello in this context
at clojure.lang.Compiler.resolveIn(Compiler.java:4682)
at clojure.lang.Compiler.resolve(Compiler.java:4628)
at clojure.lang.Compiler.analyzeSymbol(Compiler.java:4605)
at clojure.lang.Compiler.analyze(Compiler.java:4307)
… 17 more
Java Result: 1

[Edited]: added ending double quote

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:51:21+00:00Added an answer on May 12, 2026 at 8:51 am

    Your code works for me.

    user> (defmacro macro-hello [] `"hello")
    #'user/macro-hello
    user> (eval '(macro-hello))
    "hello"

    This is via bleeding-edge Clojure. “Unable to resolve symbol” means it can’t find the macro called macro-hello in the current namespace. Are you running this from the REPL or in a source file? I typed your statements at a REPL literally.

    Not sure if this is a cause of problems for you, but please note the difference between ` and ‘ in Clojure. ` does namespace resolution and ' doesn’t.

    user> `macro-hello
    user/macro-hello
    user> 'macro-hello
    macro-hello

    This is different from Common Lisp’s behavior. Backtick-quoting a String like `"hello" doesn’t make much sense, since Strings don’t belong to namespaces, but it also doesn’t hurt anything.

    (I’m assuming you made a typo in your Clojure code, with the missing double-quote.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 206k
  • Answers 206k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer SELECT student, DATE_FORMAT(ApplicationDate,'%m/%Y') as Month count(id) as Applications from YourTable… May 12, 2026 at 9:06 pm
  • Editorial Team
    Editorial Team added an answer you are specifying -d !!!!!: pg_dump -Fp -t some_table -h… May 12, 2026 at 9:06 pm
  • Editorial Team
    Editorial Team added an answer Two things: range(1, times) should almost certainly be range(times); what… May 12, 2026 at 9:06 pm

Related Questions

In common lisp I can do this: src-> (defmacro macro-hello () `hello) (eval '(macro-hello))
In Peter Seibel's Practical Common Lisp , he gives this example: (do ((nums nil)
I have an s-expression bound to a variable in Common Lisp: (defvar x '(+
I am wondering if there is some way to call C++ code from Common
I've been slowly working my way through the list of Project Euler problems, and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.