macOS Clang C++17 filesystem header not found

前端 未结 8 667
借酒劲吻你
借酒劲吻你 2020-12-14 06:30

I need to write a program using the (experimental) C++17 filesystem library but clang on my Mac (macOS 10.12.03) doesn\'t seem to

8条回答
  •  忘掉有多难
    2020-12-14 06:41

    Including gets you the declarations, but to get the definitions you also have to link with -lstdc++fs (for libstdc++) or I don't know (for libc++). If someone knows, maybe they could update this answer?

    For libc++ you need to link with -lc++experimental

提交回复
热议问题