简体   繁体   中英

How can I change my C++ to use /std:c++17 in Jetbrains Rider?

I have a problem with my Rider IDE using C++98 I guess (tested using __cplusplus) and when using inline constexpr it says

main.cpp(2, 22): [C7525] inline variables require at least '/std:c++17'

How can I change it to use cpp+17?

I tried looking for it in.vcxproj. I heard I can change it there but still could not find anything there. Do you know how can I do this?

  1. Create a C++ project.
  2. Right click the project in the solution window and click Properties
  3. Select a configuration (Debug or Release)
  4. In the general tab, chose your C++ Language Standard.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM