flagxor / ueforth

Apache License 2.0
94 stars 26 forks source link

Issue with compiling (eForth) under Arduino #7

Open techniks opened 3 years ago

techniks commented 3 years ago

Nice job by the way! (Checked out your french bread formula .. going to try your ratios) 2 basic things I don't understand (but I'm good at making bad assumptions) The {{opcodes}} ,{{calling}}, {{core}}, etc. I assume are macros to to be filled in automatically by some external data? At this point I REM'd them out. (They cause compiler error.) Also "cell_t" errors with "not defined in this scope." I copied "typedef uintptr_t ucell_t;" and " from esp32forth file. Seems to have fixed this. Then finally, "'g_sys' was not declared in this scope." Can't seem to fix this.

I can't figure out what I'm not seeing. It would be wonderful if you could help me out. Thanx, Frank

flagxor commented 3 years ago

Hi Frank,

Sorry for the very slow reply. The core is build using X-Macros: https://en.wikipedia.org/wiki/X_Macro

I'm unsure from the errors you're getting, but perhaps you caught a bad rev, or aren't using the gnumake build? When building directly from this repository you'll need to use the Makefile under ueforth/ Alternatively, if you're targeting Esp32 only, I've got post script munged snapshots of the source code at: https://esp32forth.appspot.com/

What platform are you trying to build for?

Regards

-BradN