3 ms·
I downloaded it thanks to your comment, from this site: http://www.cpm.z80.de/develop.htm http://www.cpm.z80.de/develop.htm Worked first time to create a simp
by stevekemp 2y ago
I downloaded it thanks to your comment, from this site:
http://www.cpm.z80.de/develop.htm http://www.cpm.z80.de/develop.htm
Worked first time to create a simple "Hello World" program, but many of the included examples fail to compile for me, with random errors:
RM.C: 20: String too long (or missing quote)
CP.C: 56: Curly-braces mismatched somewhere in this definition
I'll have to explore more thoroughly later, but thanks for the prod!
- kragen 2y agohmm, that's disappointing! are there in fact missing quotes and mismatched curly braces in those files? i wonder if you got a corrupted copy of the compiler
- stevekemp 2y agoThe code looks good, there seems to be some surprises with files that use "#include <stdio.h>" or similar. The include-lines are the ones the errors refer to - but since those files come with the compiler distribution I'd have expected their contents to be well-formed. I removed the includes from a few files, changed FILEs to ints, and added "#define EOF -1", etc, which let some more simple code compile & link. But it felt like those changes shouldn't have been necessary. I guess the good news is the compiler ran without me having to add any new CP/M syscalls/bdos functions to my emulator - unlike hisoft which required that I implement "T_GET" (Get date and time) and a couple of other functions I'd been missing such as F_SIZE (For getting a file size).
- kragen 2y agoyeah, it seems like you got a kind of bad package? is it the same as the version from https://www.bdsoft.com/resources/bdsc.html https://www.bdsoft.com/resources/bdsc.html?