CppSharp
nbind
Our great sponsors
CppSharp | nbind | |
---|---|---|
3 | 1 | |
2,986 | 1,966 | |
1.6% | 0.2% | |
7.9 | 0.0 | |
3 days ago | almost 5 years ago | |
C# | C++ | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
CppSharp
-
Recommendation for software to aid with creating a C# wrapper around a c++ library
Or take a look at the tools CppSharp or SWIG, s.a. Example for SWIG to wrap C++ library in .Net 6.
- Tools and libraries to glue C/C++ APIs to high-level languages
-
COM or C++/CLI layer for long-term maintenance?
I would give CppSharp a crack first. It generates a .net wrapper using pinvoke.
nbind
-
[AskJS] C++ -> compile to both wasm for web and binary add-on for node.js?
nbind aimed to do that, but it's difficult to maintain, and it didn't take off.
What are some alternatives?
SWIG - SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
v8pp - Bind C++ functions and classes into V8 JavaScript engine
CefSharp - .NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
sol2 - Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
pinvoke - A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
JavaCPP - The missing bridge between Java and native C++
PythonNet - Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers.
V8 - The official mirror of the V8 Git repository
Sharpen - Sharpen is an Eclipse plugin created by db4o that allows you to convert your Java project into c#
nelson - The Nelson Programming Language
CXXI - C++ interop framework
ChakraCore - ChakraCore is an open source Javascript engine with a C API. [Moved to: https://github.com/chakra-core/ChakraCore]