On 09/04/2013 10:09 PM,
tbur...@gmail.com wrote:
> On Wednesday, September 4, 2013 9:53:22 AM UTC-7, Dennis Boone wrote:
>
> George has updated the zmac.zip file on his website.
>
> Filenames are lower case.
> Simple Makefile for *nix (written by him on OSX, tested on Linux)
> 2 warnings in doc.c fixed.
For some reason it doesn't compile on FreeBSD:
(I added '-x c' to gcc command line in order for it to treat source as C)
tingo@kg-core1$ make
yacc -d zmac.y
mv y.tab.c zmac.c
gcc -DMK_DOC -o doc doc.c
./doc >/dev/null
gcc -x c -o zmac zmac.c mio.c doc.c ../../../../lib/zi80/zi80dis.cpp
../../../../lib/zi80/zi80dis.cpp:60: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'major'
../../../../lib/zi80/zi80dis.cpp:350: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'minor'
../../../../lib/zi80/zi80dis.cpp:1222: error: expected
specifier-qualifier-list before 'Opcode'
../../../../lib/zi80/zi80dis.cpp:1244: error: expected '=', ',', ';',
'asm' or '__attribute__' before ':' token
../../../../lib/zi80/zi80dis.cpp:1252: error: expected '=', ',', ';',
'asm' or '__attribute__' before ':' token
../../../../lib/zi80/zi80dis.cpp:1257: error: expected '=', ',', ';',
'asm' or '__attribute__' before ':' token
../../../../lib/zi80/zi80dis.cpp:1262: error: expected '=', ',', ';',
'asm' or '__attribute__' before ':' token
../../../../lib/zi80/zi80dis.cpp:1269: error: expected '=', ',', ';',
'asm' or '__attribute__' before ':' token
../../../../lib/zi80/zi80dis.cpp:1274: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'Zi80dis'
../../../../lib/zi80/zi80dis.cpp:1281: error: expected '=', ',', ';',
'asm' or '__attribute__' before ':' token
../../../../lib/zi80/zi80dis.cpp:1500: error: expected '=', ',', ';',
'asm' or '__attribute__' before ':' token
../../../../lib/zi80/zi80dis.cpp:1554: error: expected identifier or '('
before string constant
*** Error code 1
Stop in /zs/tingo/work/zmac/trs80/sdk/src/zmac.
This is on:
tingo@kg-core1$ uname -a
FreeBSD
kg-core1.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #0 r253646: Thu
Jul 25 10:12:31 UTC 2013
ro...@kg-core1.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
--
Torfinn Ingolfsen,
Norway