feos-org / feos-c

Some functions of FeOs exposed in a C interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation

Do this once to generate dynamic link to library.

LINUX

cargo build
cd src/c
ln -s ../../target/debug/libfeos_c.so .

To compile the C code from within src/c directory:

gcc test.c -L. -l:libfeos_c.so -o test

Run with:

LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH  ./test

MAC

cargo build
cd src/c
ln -s ../../target/debug/libfeos_c.dylib .

To compile the C code from within src/c directory:

clang test.c -o test libfeos_c.dylib -Wl,-rpath,/global-path-to/src/c

(adjust global path)

Run with:

./test

About

Some functions of FeOs exposed in a C interface


Languages

Language:Rust 67.1%Language:C 32.9%