Skip to content

Errors during the Project build (MAC M1) #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
arora-vidushi opened this issue Feb 4, 2023 · 0 comments
Open

Errors during the Project build (MAC M1) #8

arora-vidushi opened this issue Feb 4, 2023 · 0 comments

Comments

@arora-vidushi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant