Head meets wall repeatedly with mingw cross-compiling.
I found a regex library for Windows at
PCRE, but now I need to go find a way to get openssl in there too because that's not on Windows either.
Thanks for your response.
I am under the impression that PCRE has wrappers for POSIX regex functionality (#include ); so that should work. Ive also found a bunch of different links and discussions (mostly on Stackoverflow) leading me to believe theres also a mingw regex package without PCRE. I did not yet sort it all out.
I had forgotten about the OpenSSL libcrypto dependency. Thanks for reminding me. It is only used for hash functions, SHA-256 and RIPEMD-160. If it would help, I could easily copy portable C code from FreeBSDs libmd, and eliminate the -lcrypto entirely.
The biggest question to me is getting secp256k1s build system to work with a mingw cross-compile. The code is portable; its part of Bitcoin, which I will take as proof that it runs on Windows. But the trick is to get it to cross-build the right way. Have you tried this part on your Windows machine?
I just tried to use the makefile and deal with the errors in order, I didn't get there