Before we can use Cicada, we have to install it as a C library. Go to the download directory and run:
./configure && make && make install
Once installed, Cicada can be called from any C program. Here’s how:
#include <cicada.h>
-lcicada
runCicada(fs, myScript, runTerminal);
The three arguments to runCicada() are:
ccInt f1_in_C(argsType args) { ... }
ccInt f2(argsType args) { ... }
const Cfunction fs[] = { { "f1_in_Cicada", &f1_in_C }, { "f2", &f2 } };
The C/Cicada names may be the same or different. Cfunction and argsType are defined in cicada.h.
char *myScript = "run(\"ThingsToDo\")"; // i.e. ThingsToDo.cicada
If we don’t want to run a predefined script, we can just pass an empty string or NULL.
Last update: November 12, 2025