Build/Embed Chez Scheme with larger C/C++ program

Open
#851 3 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
build-system

Research direction

The issue describes embedding Chez Scheme in a C++ program and building it with CMake, but names no repository files or tests. Start by reviewing the linked Chez Scheme foreign interface guide and the existing build system; determine whether it supports a CMake or submodule workflow. Done means the supported approach for building and embedding Chez with C++ is clear.

Written by the indexing model from the issue text.

Description

Hello!
I've been diving into the world of Lisp/Scheme recently, and I wanted to see if I could embed chez scheme into a c++ program. I've see these two resources before on the web: https://www.reddit.com/r/scheme/comments/a3oogf/questions_on_embedding_chez_scheme_into_a_c_app/ed2b3us/ and https://cisco.github.io/ChezScheme/csug9.5/foreign.html#g34 but it's still not really clear to me how to build everything together.

I tried following the steps in the reddit post, and got far enough to link the dll mentioned but then I would get this error:
image
Is there an easier way to mix chez and C++ together? It would be nice if I could just have Chez as a git submodule or something, and build everything together with CMake.

Dominant language
Scheme
Stars
7.4k
Forks
1k
Avg merge
1d 20h
Merged PRs (30d)
19

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cisco/ChezScheme

All issues in cisco/ChezScheme

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.