-
Notifications
You must be signed in to change notification settings - Fork 833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSVC: Missing 'nanosleep()' #8121
Comments
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 #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, |
Via a home-made GNU-makefile. So the bottom-line is that MSVC is not supported for the tests? It seems PR #8090 was Regarding the |
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, |
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.The text was updated successfully, but these errors were encountered: