Copyright ©

Mongoose OS Forum

ATTENTION! This forum has moved to:

Do not post any new messages.

embed V7 in Arduino Code


First of all sorry for this basic question. I'm trieng to add the V7 interpreter to my arduino code to use with ESP8266.

I tried to use the the basic code, but it didn't compile. Could any one help me?

include "strings.h"

include "mjs.h"

void foo(int x) {
printf("Hello %d!\n", x);
//void *my_dlsym(void *handle, const char *name) {
// if (strcmp(name, "foo") == 0) return foo;
// return NULL;

void setup() {
// put your setup code here, to run once:
struct mjs *mjs = mjs_create();
//mjs_set_ffi_resolver(mjs, my_dlsym);
mjs_exec(mjs, "let f = ffi('void foo(int)'); f(1234)", NULL);
return ;

void loop() {
// put your main code here, to run repeatedly:

THE compile information:

/var/folders/72/568_sxq93bl98xpn3my7p1cw0000gn/T/arduino_build_64995/libraries/mjs-master/mjs.c.o: In function

.../Arduino/libraries/mjs-master/mjs.c:5094: undefined reference to
...//Arduino/libraries/mjs-master/mjs.c:5094: undefined reference to
/var/folders/72/568_sxq93bl98xpn3my7p1cw0000gn/T/arduino_build_64995/libraries/mjs-master/mjs.c.o: In function



  • This must be Arduino-specific, sadly we can't dedicate time for debugging non-mongoose issues.

  • you probably setup your esp8266 arduino environment using the board manager ... try manually cloning the latest github ... and recompile

Sign In or Register to comment.