Open gvanem opened 3 weeks ago
Hi @gvanem,
Thank you for the report!
How are you trying to build tests/api.c and tests/unit.c? Are you building through VS IDE or command line?
We have a number of different VS solutions for wolfSSL. E.g. we just added new VS 2022 solutions for wolfssl test and benchmark here in this PR https://github.com/wolfSSL/wolfssl/pull/8090.
There's also this documentation that's useful:
You can also build on command line in WSL on Windows, and follow our unix-like system steps:
Best, Jordan
How are you trying to build tests/api.c and tests/unit.c?
Via a home-made GNU-makefile.
So the bottom-line is that MSVC is not supported for the tests? It seems PR https://github.com/wolfSSL/wolfssl/pull/8090 was
merged before I hit the issue. Even then nanosleep()
is not there for MSVC/clang-cl?!
Regarding the invoke_watson
stuff, it seems some fopen()
flags like "rwb"
and "ar"
triggers this. Seems illegal.
I fixed that by adding a _set_invalid_parameter_handler (invalid_parameter_handler);
call.
Hi @gvanem,
MSVC is supported for building our tests. If you are building with Visual Studios, I recommend following the previously linked Windows build docs.
If you want to build with GNU toolchain on command line on Windows, I would recommend using the WSL on Windows. Then you can just follow our Unix-like system build procedure (git clone, ./autogen.sh, ./configure, make, etc).
Best, Jordan
Version
From a
git pull
yesterdayDescription
Trying to build the
unit.exe
test-program using MSVC on Win-10, I'm getting a link-error; unknown functionnanosleep()
. Should be easy enough to fix. Here is my attempt:(I assume any MinGW does have it).
But
unit.exe
is crashing (on an unrelated issue) at runtime insideUCRT
.Any pointers as to why? The
certs/server-cert.pem
exists.