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

  • SEARCH
  • Home
  • 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 8881699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:23:49+00:00 2026-06-14T20:23:49+00:00

This is a follow up to my previous question . It seems, unfortunately, that

  • 0

This is a follow up to my previous question. It seems, unfortunately, that Chicken Scheme, by default, doesn’t support complex numbers, but rather offers a numbers egg that can be installed.

I have installed this egg, via chicken-install numbers, and I can load it in an interpreted environment. I can do this by calling use; either manually in the REPL, or by running my .scm file as a script through csi.

For example, this script works perfectly:

(use numbers)

(begin
  (display 3+3i)
  (newline)
)

when run with:

csi -s main.scm

But when I compile this exact same snippet with csc (even without any addtional flags), I get the same runtime error that I would if I didn’t load it (e.g. an unbound variable.) It seems as if in a compiled environment use doesn’t cut the mustard.

Two other things to note, is that, per the documentation, I tried other importing functions such as require-extension, require-library, etc., but none make an difference. The other is that if I change the name of the module to something other than numbers, say numberss, it fails to compile, complaining that it can’t load the extension, so obviously it is at least detecting that the numbers library is installed.

Could anyone please explain, preferably through a short working example how to use an egg in a compiled environment? Thanks in advance! 🙂

  • 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-06-14T20:23:50+00:00Added an answer on June 14, 2026 at 8:23 pm

    According to the helpful information provided by Peter Bex on the mailing list, most eggs will work out of the box, you simply need to use them.

    Certain eggs though, provide extensions to the basic reader, and the compiler needs to be told about them. You can do this with the -X flag. As the documentation says, numbers is one of those packages.

    Compiling your snippet with:

    csc -X numbers-syntax main.scm
    

    worked perfectly.

    I hope this helps! 🙂

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

Sidebar

Related Questions

This is a follow up to a previous question which seems to have confused
This is a follow-on from a previous question ( here ), but I'm working
This is a follow-up on a previous question I had ( Complexity of STL
This is a follow-on question to C++0x rvalue references and temporaries In the previous
This is a follow-up question to my previous question on Managing employee contracts in
( NOTE: This is a follow up to a previous question, How to pass
This is a follow-up to my previous question about developing Perl applications . Let’s
This a follow-up to a previous question . How can I optimize this query
This is a follow up question to my previous question . I am trying
This is a follow-up to a previous question I had about interfaces. I received

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.