Re: z88dk compile problem
- From: A936@xxxxxxxxxxx
- Date: 12 Sep 2005 18:40:19 -0700
Paul F. Johnson wrote:
> I've set up the environment variables required for building z88dk
> (namely Z80_OZFILES, ZCCCFG and adjusted PATH). I can run make without a
> problem and the binaries are created.
>
> When I run make libs
> I keep getting the same error (which I also see
> when compiling anything in the examples/spectrum directory). The error
> reads
Hmm, to make the libs just change to the libsrc
directory and enter "make". "make install" will
move the libs to the right destination directory
and "make clean" will clean up everything for you.
I think all download pkgs come with the z80 libraries
already made (it certainly did with the Windows
installer) so this step shouldn't be necessary.
> zcc -vn -make-lib brotherdor.c
> Unrecognised argument: Cz+z88
> Any ideas on this and how to fix it?
To compile C programs you need to specify a target
machine and link in the file io library. Here's the
same compile command for a Spectrum target:
zcc +zx -vn -create-app brotherdor.c -lndos
The +zx means Spectrum and the -lndos links to
the ndos file io library (ie the no dos lib
as the Spectrum doesn't have dos functions).
+3DOS is supported, however, and if you want
to use the +3 disk you'd link to something
else. The -create-app option creates a self
loading tap file (the binary is also made).
The Makefile in the examples/spectrum dir shows
how to compile each of the examples.
Now it could be I have missed the point because
I'm not sure why you have "-make-lib" in there :)
Alvin
.
- Follow-Ups:
- Re: z88dk compile problem
- From: Paul F. Johnson
- Re: z88dk compile problem
- References:
- z88dk compile problem
- From: Paul F. Johnson
- z88dk compile problem
- Prev by Date: z88dk compile problem
- Next by Date: Re: z88dk compile problem
- Previous by thread: z88dk compile problem
- Next by thread: Re: z88dk compile problem
- Index(es):
Relevant Pages
|