Debug build of Draw
Julie Stamp (8365) 474 posts |
Trying to make a debug build of Draw, e.g. using !Debug complains that VerIntern/Messages.h is missing. Has anyone else managed to get the debug build to work recently? |
djp (9726) 54 posts |
Found it.
Why a !Debug build fails to find it is a bit of a mystery. |
Jean-Michel BRUCK (3009) 359 posts |
To build the file must be in the directory Export.Apcs-32.Lib.Risc_OsLib |
djp (9726) 54 posts |
I cheated slightly, omitting the rlib folder, to avoid editing the source.
There are further bugs. |
Julie Stamp (8365) 474 posts |
If I #define TRACE 1 then it says “Not enough memory for C library”. |
Julie Stamp (8365) 474 posts |
I’ve got it to build now. The bug is mentioned here The file “c.flex” that includes VerIntern/messages.h is very similar to the c.flex that’s actually in RISC_OSLib. The main difference is that it calls Draw’s ftrace functions rather than RISC_OSLib’s trace functions. I think the way to go is improve RISC_OSLib’s c.trace to match Draw’s c.ftrace so that it isn’t necessary to have a custom copy of c.flex? |
Steve Pampling (1551) 8170 posts |
Custom copies of anything that is normally generic are bad news, the only question that ever arises is how bad. |