Home Forums GAMES在线课程(现代计算机图形学入门)讨论区 框架中的 auto [alpha, beta, gamma] 未定义标识符

Viewing 1 reply thread
  • Author
    Posts
    • #12010 Score: 0
      zzj
      Participant

      auto [alpha, beta, gamma] = computeBarycentric2D(x, y, t.v);
      alpha, beta, gamma 未定义标识符。

    • #12104 Score: 0
      Loong
      Participant
      1 pt

      要用C++17,CMakeLists.txt里面加set(CMAKE_CXX_STANDARD 17)

      • #12105 Score: 0
        Loong
        Participant
        1 pt

        如果是vscode的错误提示,需要修改.vscode/settings.json
        {
        “C_Cpp.default.cppStandard”: “c++17”
        }

Viewing 1 reply thread
  • You must be logged in to reply to this topic.