I'm trying to bring DOS interface code of Frotz up to date with the multitudes of changes in the core. A signficant change is moving a bunch of global variables into a structure. I'm using Turbo C 3.00. After successfully compiling the DOS code, the build process moves to the core of the Frotz engine. There, I get the following errors:

===begin quote===
src\common\fastmem.c
Error src\common\fastmem.c 160: Ambiguous member name 'flags' in function restart_header Error src\common\fastmem.c 435: Ambiguous member name 'flags' in function init_memory
*** 2 errors in Compile ***

        Available memory 4059444

** error 1 ** deleting src\common\fastmem.o
C:\FROTZ>
===end quote===

What's really strange about this is that the "flags" member is neither the first member of the struct, nor does it appear first in the file fastmem.c. The code in src/common compiles just fine for Linux, BSD, and MacOS. Changing their line endings doesn't help. What's going on here?

I have in issue filed on this at https://gitlab.com/DavidGriffith/frotz/issues/159. The dos-fixup branch is where I'm working on the DOS interface.


--
David Griffith
[email protected]

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to