Skip to content

JoKr4/dart-ffi-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dart-ffi-hello-world

Call c code from dart and dart code from c
(to be used in my project where sensor data from a native lib should notify dart/flutter for new data)

Build the c library:

mkdir hello_library/build
cd hello_library/build
cmake ..
cmake --build .

(assuming you have gcc and cmake available)

and then call dart:

cd ..
cd ..
dart hello.dart

will print:

Hello World in c lib
Hello World in dart called by c lib

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published