Files
medicallib_rust/INSTALL.md
T
2025-09-21 02:14:44 -07:00

14 lines
462 B
Markdown

# Installation and Usage (C/C++)
1. Build the cdylib:
- `cargo build --features ffi --release`
- Outputs under `target/release/` (`.so`/`.dll`/`.dylib`)
2. Include header `ffi/medicallib.h` in your C/C++ project.
3. Link your app against the produced library.
4. See `examples/c/ffi_example.c` for usage.
Notes:
- Free all strings returned by the library with `ml_string_free`.
- Use the organ type codes (ML_ORGAN_*) to query specific organ summaries.