I added "stdlib.h" and program C seems to compile correctly, but at the end it returns the error:
Code: Select all
Error at file 'sleep.c' line 23: symbol 'clock' not defined
Code: Select all
zcc + msx -no-cleanup -v -m -s --list -c-code-in-asm -subtype=rom -compiler = sdcc -SO3 --max-allocs-per-node10000 --reserve-regs- iy -create-app -pragma-define:CRT_MODEL= 1 -o test.bin @zproject.lst --fsigned-char
Code: Select all
#include <msx.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void main (void) {
msx_color (15, 1, 1);
msx_set_mode (mode_2);
sleep (1);
while (1) {}
}
Code: Select all
Error at file 'delay.c' line 23: symbol 'clock' not defined
Do I have to add another include?
Thank you very much