Problems with z88dk (v13913-9abd768-20190119)

Problems installing on other platforms
Post Reply
jp48
New member
Posts: 2
Joined: Sun Jul 28, 2019 2:19 pm

Problems with z88dk (v13913-9abd768-20190119)

Post 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 !
User avatar
dom
Well known member
Posts: 1194
Joined: Sun Jul 15, 2007 10:01 pm

Post 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.
jp48
New member
Posts: 2
Joined: Sun Jul 28, 2019 2:19 pm

Post by jp48 »

Excellent, worked immediately, thanks :) !!
Post Reply