Page 1 of 1

Problems with z88dk (v13913-9abd768-20190119)

Posted: Sun Jul 28, 2019 2:29 pm
by jp48
Hi,

I have used z88dk earlier, with SMS and ZX Spectrum, but the machine has been Windows and Linux. Now I am trying to run and compile sound examples, fx.c for instance, I have configured path and ZCCCFG as:

Code: Select all

export PATH=~/z88dk/bin:$PATH
export ZCCCFG=~/z88dk/lib/config
All looks fine, but when trying to compile anything, got a a bunch of errors, and no binary.

For instance, fx.c

Code: Select all

zcc +zx fx.c

---

Error at file 'fclose.c' line 82: symbol 'close' not defined
Error at file 'fputc_callee.c' line 126: symbol 'writebyte' not defined
Errors in source file /Users/jkervinen/z88dk/lib/config/../..//lib/target/zx/classic/spec_crt0.asm:
Error at file 'fclose.c' line 82: symbol 'close' not defined
Error at file 'fputc_callee.c' line 126: symbol 'writebyte' not defined
I also defined Z80_OZFILES=~/z88dk/lib, but not changing anything.

The package is binary for OS X, z88dk-osx-1.99C.zip, my system is OS X 10.10.5, Macbook Pro 2010. I also run build.sh without problems (except those warnings), but still don't work.

Thanks !

Posted: Sun Jul 28, 2019 3:09 pm
by dom
I can write more later on, but to fix your problem you need to add -lndos.

There?s switchable disc libraries for the ZX and for this example you need the stub ndos library.

Posted: Sun Jul 28, 2019 3:37 pm
by jp48
Excellent, worked immediately, thanks :) !!