I looked around and found that I had to add this in my CMakeLists.txt and changed the file I am trying to compile from C to Cpp. And it worked!
Code:
set(CMAKE_CXX_STANDARD 17)Statistics: Posted by harsh20 — Thu Dec 05, 2024 11:03 am