
http://www.z88dk.org/forum/viewtopic.php?id=10
So, maibe some people may have problems with v1.9 sourceforge binaries.
You need to specify a target platform for the compile. I'm not sure if that will solve this specific problem but it would certainly solve others that would crop up later :-)Ragooman wrote:-----------------------------------------------------------------------------------------------------------------------------------
C:\z88dk\examples\embedded>zcc hello.c
Code: Select all
z80asm -a -m -Mo -iembedded_clib2 -Lc:\z88dk\lib\clibs -oa.bin -indos -iembedded_clib -iz80_crt0 C:\z88dk\build\s3do_1.opt C:\z88dk\build\s3do_.o
[b]File 'embedded_clib2.lib', Couldn't open library file[/b]
2 errors occurred during assembly
Key to filenames:
C:\z88dk\build\s3do_.o = hello.c
File 'C:\z88dk\build\s3do_1.asm', at line 2,[b] File open/read error[/b]
Code: Select all
C:\z88dk\examples\embedded>zcc +embedded hello.c ns16450.o
copy ns16450.o C:\z88dk\build\s35o_1.o
The system cannot find the file specified.
Cannot copy input file
I don't have the time at the moment to check into exactly what has gone wrong with the embedded target but I'm guessing yes that is what it should have retrieved. Trying making a copy of embedded_clib.lib to embedded_clib2.lib. The big Makefile in z88dk/libsrc makes all the target libraries. The next place I will look is into this Makefile to find out what is going on in the build for the embedded lib.Ragooman wrote:I did a dir search and there is no "embedded_clib2.lib" anywhere in the z88dk dir tree
However, there is a "embedded_clib.lib" file in C:\z88dk\lib\clibs
Is this the file that the compiler supposed to retrieve instead ?
Yeah ns16450.o comes from ns16450.c in that example dir. The ns16450.c code is not integrated into z88dk proper and was written by the person who generated that particular target for his particular hw setup. You can do as you did (add the ns16450.c to the compile) or generate ns16450.o as the makefile does so that it is available in that dir.then when I try the command line:
zcc +embedded hello.c ns16450.o
I get the following error:There's no "ns16450.o" file anywhere in the z88dk dir treeCode: Select all
C:\z88dk\examples\embedded>zcc +embedded hello.c ns16450.o copy ns16450.o C:\z88dk\build\s35o_1.o The system cannot find the file specified. Cannot copy input file
Did you mean to use the "ns16450.c" file in the embedded dir instead ?
When I tried that
zcc +embedded hello.c ns16450.c
it appears to compile correctly until near the end when I get the same 2 errors that I mentioned above.