Skip to content

Errors during the Project build (MAC M1) #8

Open
@arora-vidushi

Description

@arora-vidushi

During building the project, the following errors were produced:

/opt/homebrew/include/yaml-cpp/binary.h:23:17: error: expected member name or ';' after declaration specifiers
      : m_data{}, m_unownedData(data_), m_unownedSize(size_) {}
                ^
/opt/homebrew/include/yaml-cpp/binary.h:23:15: error: expected '('
      : m_data{}, m_unownedData(data_), m_unownedSize(size_) {}
              ^
In file included from /Users/vidushi/development/testing-boost-exercise/src/Configuration.cpp:4:
In file included from /opt/homebrew/include/yaml-cpp/yaml.h:14:
In file included from /opt/homebrew/include/yaml-cpp/exceptions.h:12:
/opt/homebrew/include/yaml-cpp/traits.h:111:10: error: 'auto' not allowed in function return type
  static auto test(int)
         ^~~~
/opt/homebrew/include/yaml-cpp/traits.h:111:24: error: expected ';' at end of declaration list
  static auto test(int)
                       ^
/opt/homebrew/include/yaml-cpp/traits.h:115:10: error: 'auto' not allowed in function return type
  static auto test(...) -> std::false_type;
         ^~~~
/opt/homebrew/include/yaml-cpp/traits.h:115:24: error: expected ';' at end of declaration list
  static auto test(...) -> std::false_type;

...

In CMakeLists.txt:
TARGET property CXX_STANDARD does not seem to work properly. Setting Global CMAKE_CXX_STANDARD to 11 successfully built the project.

Environment details:
OS : MacOS Monterey 12.3.1 (M1 chip)
CMake: 3.25.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions