[sword-devel] regex.h

Greg Hellings greg.hellings at gmail.com
Thu Oct 24 11:40:34 EDT 2024


I'm trying to build SWORD in an environment without a system regex.h. The
library build itself goes great, but diatheke fails to find the internal
regex.h file, ending with this error.

sword-x86_64-w64-mingw32> corediatheke.cpp:29:10: fatal error: regex.h: No
such file or directory
sword-x86_64-w64-mingw32>    29 | #include <regex.h>
sword-x86_64-w64-mingw32>       |          ^~~~~~~~~
sword-x86_64-w64-mingw32> compilation terminated.

The offending invocation of the compiler is:
x86_64-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I../../include    -Ofast -fPIC
-D_ICU_ -DCURLAVAILABLE
-I/nix/store/mkzj31p69kxrhar1b2l5vq7hkd1n45i4-curl-x86_64-w64-mingw32-8.9.1-dev/include
-DCURLSFTPAVAILABLE -DUSEICUREGEX  -Wno-address -Wno-nonnull-compare
-Wno-unused-but-set-variable -Wno-unknown-warning-option
-DU_USING_ICU_NAMESPACE=1 -Wint-to-pointer-cast -fpermissive -D_ICUSWORD_
-DCURL_STATICLIB -ftemplate-depth=100 -c -o corediatheke.o corediatheke.cpp

I have tried this both with the -DUSEICUREGEX and with only the internal
version, but that doesn't seem to affect this. It looks like the diatheke
compile invocation needs to include -I../include/interna/regex when the
internal regex.h is requested.

Am I missing something to set that flag?

--Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20241024/6215c7c2/attachment.htm>


More information about the sword-devel mailing list