-
Notifications
You must be signed in to change notification settings - Fork 101
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
Issue to build the actual code with MSYS2 / MINGW64 related to usleep (Impact multiple files SignalGeneratorOscilloscope.cpp...) #262
Comments
usleep() refactor: Fixed in commit 776cedd#diff-0d1d73e86403ed9f06e12735b9937cd4
Fixed in commit ngscopeclient/scopehal-apps@7c86f3c#diff-6d16a51d05214165d81b1dc2762dbf61
Fixed in commit ngscopeclient/scopehal-apps@356403c#diff-4ec02d16f1079c62f88c4c0659ecde10
Fixed in commit ngscopeclient/scopehal-apps@6e255eb#diff-c7b71288f79589e7de3a7fdc1e0ad952
|
It is better to use Feel free to do those changes and create a PR if you have the time. |
Replace usleep(..) by std::this_thread::sleep_for(std::chrono::microseconds(..)) see PR #262
Issue to build the actual code with MSYS2 / MINGW64 related to SignalGeneratorOscilloscope.cpp code
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
...
Error
Issue is related to usleep() which is deprecated since POSIX.1-2001 Issue 6 and not supported by MinGW
See https://sourceforge.net/p/mingw/mailman/message/33179314/
Potential solution for that https://gist.github.com/ngryman/6482577
The text was updated successfully, but these errors were encountered: