canewsin / ffi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Experiments with Dart FFI

A series of simple examples demonstrating how to call C libraries from Dart.

Please note that the Dart FFI API is in active development and likely to change before release. This code is designed to work with Dart version 2.5.0-dev.1.0.

Instructions

The C make files are (currently) written to work on a Mac. To compile the libraries, go to the c folder in each subproject and run:

make dylib

A .dylib file should be created in the parent folder. Navigate to that and run the dart file.

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 67.5%Language:C 25.3%Language:Makefile 6.5%Language:Shell 0.5%Language:C++ 0.2%