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

Bug reports (if you don't/won't have a Github account)
Post Reply
marek
New member
Posts: 1
Joined: Wed Aug 08, 2018 11:29 pm

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

Post 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
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post 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
Post Reply