I'm getting an issue when only using G++ with the format library included in C++20 and onwards, I have included the library (#include <format>
) however, G++ returns "No such file or directory", therefore it terminates the compilation...
However using cl (msvc), it works, could it be that the format library is not added yet to g++, or am i doing something wrong?
CLI Command: g++ -std=c++2a main.cpp
Code:
#include <format>
void StartThread() {
// Notification
std::string start = std::format("Starting Thread ID: {}\n", std::this_thread::get_id());
std::cout << start;
... // Unrequired Code below
}
main.cpp:5:10: fatal error: format: No such file or directory
5 | #include <format>
| ^~~~~~~~
compilation terminated.
Any help would be appreciated tyyy