Forum Discussion
CaptainPrice15
New Contributor
2 years agoProblems with the chrono library in NIOS II
Even though the includes in the bsp has the chrono library and #include<chrono> doesn't throw any error, when the library is used, there is always an error For Example, when I use "std::chrono::hig...
- 1 year ago
Hi CaptainPrice15,
The screenshot is just to show the application is able to run with the chrono library.
Try to compile/build all even when you see the errors while editing the code.
Thanks.
Regards,
Aik Eu
aikeu
Regular Contributor
1 year ago- CaptainPrice151 year ago
New Contributor
Hi @aikeu
Thanks for your support. The problem has been resolved. The problem was apparently with std::chrono::high_resolution_clock::duration. Replaced that with std::chrono::_V2::system_clock::duration and it works now.
As you said, it still throws an error while editing the code (which can be ignored) but it does build properly.Thanks a lot once again!