Skip to content

‘status’ was not declared in this scope; did you mean ‘std::filesystem::status’? #28

Open
@yourengod

Description

@yourengod

您好.

/MeloTTS.cpp/src/utils.cpp: In function ‘void SetOneDNN_CPU_MAX_ISA()’:
/MeloTTS.cpp/src/utils.cpp:40:9: error: ‘status’ was not declared in this scope; did you mean ‘std::filesystem::status’?
   40 |     if (status == 0) {
      |         ^~~~~~
      |         std::filesystem::status
In file included from /usr/include/c++/13/filesystem:51,
                 from /home/llm/workspace2/tts/mymelottscpp/MeloTTS.cpp/src/utils.h:11,
                 from /home/llm/workspace2/tts/mymelottscpp/MeloTTS.cpp/src/utils.cpp:9:
/usr/include/c++/13/bits/fs_ops.h:360:15: note: ‘std::filesystem::status’ declared here
  360 |   file_status status(const path& __p, error_code& __ec) noexcept;
      |               ^~~~~~
gmake[2]: *** [CMakeFiles/meloTTS_ov.dir/build.make:118:CMakeFiles/meloTTS_ov.dir/src/utils.cpp.o] 错误 1
gmake[1]: *** [CMakeFiles/Makefile2:83:CMakeFiles/meloTTS_ov.dir/all] 错误 2
gmake: *** [Makefile:91:all] 错误 2

什么原因?

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