regex.h

Greg Hellings <[email protected]>
Newsgroups gmane.comp.literature.sword.devel
Message-ID <CAHxvOVKVtAcF=boPVzPSNjhNZUD1a2shR1AW=AWvito9UROC7A@mail.gmail.com>
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

_______________________________________________
sword-devel mailing list: [email protected]
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.