You have to call:
erl_init(NULL, 0);
the first thing you do.
Cheers /Tobbe
---------------------------------------------
/* This program doesn't core dump */
#include "erl_interface.h"
#include "ei.h"
main()
{
ETERM *e;
int i;
erl_init(NULL, 0);
i = 1;
e = erl_mk_int(i);
}
---------------------------------------------