Skip to content

A minimal example demonstrating how to set up a project that integrates C++ functions as a shared/static library callable from Janet.

Notifications You must be signed in to change notification settings

jw-0/Janet-C-Example-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a minimal example project for calling C++ from Janet.

Usage: Make sure you have Janet and jpm installed. Then run jpm build from the root of this directory. It will handle compiling the shared library (rectangle_bindings.cpp and rectangle.h) and then compile the main.janet file into an executable. If you don't want to use the executable and just run main.janet as a script, still run jpm build to ensure the rectangle library is built and then just call janet main.janet and it should find the library in the build/ directory.

The resulting executables are in build/

About

A minimal example demonstrating how to set up a project that integrates C++ functions as a shared/static library callable from Janet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published