Compile it with “bash”, not “gcc” (or use the command-line switches mentioned at the top of the file, if you do use “gcc” and wish to set your own output path and stuff like that) (this is something unusual I do with my own programs; most C programs can’t be compiled by running them through “bash”). The file tavern.c is the interpreter; tavernc.c is the standard compiler. Also, “tavernc-parser.c” is a compiler extension (currently incomplete) and not a standalone program (that is what “undefined reference to `main’” means; it is trying to compile it as a standalone program because you didn’t tell it otherwise, but a standalone program must export a function called “main”), although it is not important for CYOA (or a game using a simpler parser than the one that extension implements).
The example in the other thread works, but it is not a full game, but rather more of just a test.
Compile the example with:
tavernc < example.src > example.tav
Execute the example with:
I have not worked on the standard adventure library or the parser compiler extension in a while, although the program does work as is. (If you are doing CYOA, neither of these two things will be helpful anyways)
Also, if you just typed “gcc tavern.c”, you will get an unoptimized unstripped executable called “a.out” in your current directory, which is probably not what you want.