Hi i found this cross compiler as a great idea, while I'm not used to C, I thought it shouldn't be so difficult but I ?m having serious problems to accomplish almost anything , I? am following the ZX81-c course at https://forum.tlienhard.com/phpBB3/view ... hp?f=8&f=8 and letting chrome to translate it as I can?t read german..
I ?ve instaled the latest nightly a few days ago, and followd succesfully the instalation and Verifyed the zsdcc install (mean ended with no errors as I can?t test sodoku for cpm by any means) acording https://github.com/z88dk/z88dk/wiki/installation..
I could compile/ makeapp and run the "Hello world" succesfully !! but I couldn?t compile almost anything else..
particularlly and just to see how did it look I ?tried the hires demo at https://forum.tlienhard.com/phpBB3/view ... 68dde6aae9
its a 22 lines source
Code: Select all
#include <graphics.h>
#include <stdio.h>
#include <zx81.h>
#define WIDTH 256
#define HEIGHT 192
int main(void) {
int x;
int y;
printf("\n GRAFIK MIT %d X %d PIXELN\n", WIDTH, HEIGHT);
clg();
copytxt(txt_or);
drawb(0, 0, WIDTH, HEIGHT);
for (x = 0; x < WIDTH; x++) {
y = (HEIGHT * x) / WIDTH;
plot(x, y);
plot(x, HEIGHT - 1 - y);
}
return 0;
}
C:\...... ........>zcc +zx81 -startup=3 -o hrg192 -create-app hrg192b.c
Error at file 'hrg192b.c' line 36: symbol 'copytxt' not defined
Errors in source file C:\descargas\CZ1000\z88dk\lib\config\..\..\\lib\target\zx81\classic\zx81_crt0.asm:
Error at file 'hrg192b.c' line 36: symbol 'copytxt' not defined
I know this should be a really newbe easy thing to solve but I see this sort of thing continuously and kinda disappointed for myself..
another thing I?ve noted is that when using 192.c (only numbers in source code file name) I got this other error message
"Error at file 'C:/Users/... ../AppData/Local/Temp/zccA3082.asm' line 1: syntax error"
any help will be welcome..