Skip to content

Some functions of FeOs exposed in a C interface

Notifications You must be signed in to change notification settings

feos-org/feos-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published