ONNX Runtime 1.25.1 C/C++ APIs as C++23 modules; Ort:: names are preserved.
English · 简体中文 · Upstream · Releases · mcpp · Index
import mcpplibs.mwrap.onnxruntime;: Ort:: and C inference APIsimport mcpplibs.mwrap.onnxruntime.config;: Session and runtime configuration keysimport mcpplibs.mwrap.onnxruntime.macros;: API-version macro mappings
More Modules API -> Usage and API
mcpp new inference --template mcpplibs.mwrap.onnxruntime@1.25.1
cd inference
mcpp run[dependencies]
mcpplibs.mwrap.onnxruntime = "1.25.1"import mcpplibs.mwrap.onnxruntime;
int main() { Ort::Env env(ORT_LOGGING_LEVEL_WARNING, "example"); }Linux GCC consumers set cxx_runtime = "toolchain-coupled" in [target.x86_64-linux-gnu] for the SDK exception runtime.
Official CPU SDK: Linux x86_64 glibc, Windows x86_64 MSVC ABI, macOS ARM64.
GPU, musl and MinGW need separate SDKs. The template executes an embedded Identity model.
.config exposes configuration keys; .macros maps API version. Text macros use <mwrap/onnxruntime/macros.hpp> before imports.
Usage and mixing limits · SDK provenance · Tests · Apache-2.0 The SDK retains its MIT license and ThirdPartyNotices.txt.
Wrapper: Apache-2.0, mcpp-community. Original upstream README and licenses. Upstream licenses remain unchanged.