Skip to content

macOS m1 执行编译报错找不到 <string> #4

@yuhr123

Description

@yuhr123

之前成功编译过,今天 pull 了一下,按照 readme 中的编译说明,执行 cmake --build . --config release 会报下面的错误:

[  3%] Building CXX object 3rd/sxtwl_cpp/src/CMakeFiles/sxtwl.dir/JD.cpp.o
In file included from /Users/herald/repo/qimen/3rd/sxtwl_cpp/src/JD.cpp:1:
/Users/herald/repo/qimen/3rd/sxtwl_cpp/src/JD.h:4:10: fatal error: 'string' file not found
    4 | #include <string>
      |          ^~~~~~~~
1 error generated.
make[2]: *** [3rd/sxtwl_cpp/src/CMakeFiles/sxtwl.dir/JD.cpp.o] Error 1
make[1]: *** [3rd/sxtwl_cpp/src/CMakeFiles/sxtwl.dir/all] Error 2
make: *** [all] Error 2

macOS 版本:15.0
x-select 版本:2409

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions