Page 1 of 1

compiler error shows missing REG_OKAY (git version aug.9th 2018

Posted: Wed Aug 08, 2018 11:33 pm
by marek
cc -MMD -I. -Ilib -It -g -Wall -ftabstop=4 -std=gnu11 -O3 -I../common -I../../ext/optparse -I../../ext/regex -I../../ext/uthash/src -g -O2 -c -o ../common/objfile.o ../common/objfile.c
../common/objfile.c:1036:8: error: use of undeclared identifier 'REG_OKAY'
== REG_OKAY)
^
../common/objfile.c:1126:74: error: use of undeclared identifier 'REG_OKAY'
...= regexec(&regex, str_data(symbol->name), 0, NULL, 0)) == REG_OKAY) { /...
^
../common/objfile.c:1235:74: error: use of undeclared identifier 'REG_OKAY'
...= regexec(&regex, str_data(symbol->name), 0, NULL, 0)) == REG_OKAY) { /...
^
3 errors generated.
make[1]: *** [Makefile:60: ../common/objfile.o] Error 1

Posted: Thu Aug 09, 2018 8:48 pm
by alvin
REG_OKAY is definitely defined in "../../ext/optparse/regex.h" which is in the include path in the cc line you give.

Is this a git clone? I think you maybe forgot to get the git submodules - this won't be done automatically with the git clone.

git submodule update --init --recursive

From the z88dk directory should grab the submodules