主页 Forums Games202-高质量实时渲染 作业5:编译出错

Viewing 4 reply threads
  • Author
    Posts
    • #9123 Score: 0
      love lan
      Participant

      下载作业5框架,调用build.sh,则出现以下报错。

      Attachments:
      You must be logged in to view attached files.
    • #9125 Score: 0
      love lan
      Participant

      使用的是MacOs 版本10.15.7

    • #9134 Score: -1
      slongle(助教)
      Keymaster
      10 pts

      更新一下clang,libc++版本

      This post has received 1 vote down.
      • #9136 Score: 0
        love lan
        Participant

        我gcc已经更新到gcc11 clang也是12.0,还是编译不过

        Attachments:
        You must be logged in to view attached files.
        • #9170 Score: 0
          slongle(助教)
          Keymaster
          10 pts

          我们原来试过在mac上用g++是行的,你可以参考下面那位同学的回答。

          关于clang你看一下你的libc++版本,你试试下面这个命令,我们会得到#define _LIBCPP_VERSION 11000,代表11.0版本。
          printf “#include \nint main () {}” | clang -E -stdlib=libc++ -x c++ -dM – | grep _LIBCPP_VERSION

    • #9135 Score: 0
      love lan
      Participant

      是要怎么更新呢,更新到什么版本

    • #9149 Score: 0
      stephen
      Participant

      不用clang,更换g++支持c++17特性通过编译
      https://stackoverflow.com/questions/17275348/how-to-specify-new-gcc-path-for-cmake

Viewing 4 reply threads
  • You must be logged in to reply to this topic.