Hi, I am new to CUDA. I just created a new CUDA 12.6 Runtime project and compiled. It ran smoothly.
Then I added:
-
include
using namespace std::chrono; -
int main()
{
time_point<system_clock> startTime = system_clock::now();
year y{ 1981 };
month m{ 3 };
day d{ 1 };
year_month_day date(y, m, d);
.................
}
- I also set the Project Properties C++ to ISO C++ 20 standard.
When I try to compile, this is the error:
identifier “day” is undefined
identifier “month” is undefined
identifier “year” is undefined
identifier “year_month_day” is undefined
My environment is:
Windows 11 Pro
Visual Studio 17.10.5
CUDA 12.6
What have I missed out?
Thank you.