Just tested on CentOS 8, not reproducible .
The C compiler has a problem to find include files for some reason on your system.
Looks like the problem is it can find defs for BYTE and WORD.
Does anyone know where, on Ubuntu 20.04, those defs are? I’ve looked through most of the stuff in /usr/include/ and /usr/include/x86_64-linux-gnu/9/include including all the student.h I could find, but nothing.
On Sunday, April 17, 2022 at 12:06:36 AM UTC+8, Udo Munk wrote:
Just tested on CentOS 8, not reproducible .
The C compiler has a problem to find include files for some reason on your system.
I’m trying to build the dev version of Z80Pack.
git clone https://GitHub.com/undo-munk/z80pack.git
cd z80pack/
git checkout dev
cd front panel
make -f Makefile.Linux
sudo cp lib front panel.so /use/lib
cd ../cromemcosim/srcsim
make
…
In file included from sim0.c:64:
./memory.h:44:2: error: unknown type name ‘BYTE’
44 | BYTE spage; /* start page of segment */
./memory.h:45:2: error: unknown type name ‘WORD’
45. | WORD size; /* size of segment in pages */
./memory.h:50:8error unknown type name ‘WORD’
On Saturday, 16 April 2022 at 16:04:27 UTC+1, Nathanael wrote:
I’m trying to build the dev version of Z80Pack.
git clone https://GitHub.com/undo-munk/z80pack.gitnet typo error, blocked me testing this on ubuntu before I realised - git clone https://GitHub.com/undo-munk/z80pack.git (undo-munk should be udo-munk :) )
cd z80pack/
git checkout dev
cd front panel
make -f Makefile.Linux
sudo cp lib front panel.so /use/lib
cd ../cromemcosim/srcsim
make
…
In file included from sim0.c:64:
./memory.h:44:2: error: unknown type name ‘BYTE’
44 | BYTE spage; /* start page of segment */
./memory.h:45:2: error: unknown type name ‘WORD’
45. | WORD size; /* size of segment in pages */
./memory.h:50:8error unknown type name ‘WORD’
cheers
richard
Really odd problem, sim0.c includes:
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libgen.h>
#include <ctype.h>
#include <fcntl.h>
#include <memory.h>
#include <sys/stat.h>
#include <sys/time.h>
#include "sim.h"
#include "simglb.h"
#include "config.h"
#ifdef FRONTPANEL
#include "../../frontpanel/frontpanel.h"
#endif
#include "memory.h"
sim.h typdefs BYTE and WORD but then unkown in later included memory.h
Don't know why and cannot reproduce this on OSX, Windows, Linux, BSD.
This is all being done in a fresh stock Ubuntu 20.04 desktop VM
installed from the 20.04 iso downloaded from Ubuntu.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 09:32:01 |
Calls: | 10,388 |
Calls today: | 3 |
Files: | 14,061 |
Messages: | 6,416,843 |
Posted today: | 1 |