Skip to content
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

build failure with gcc 12 #4

Open
ltalirz opened this issue Feb 10, 2023 · 1 comment
Open

build failure with gcc 12 #4

ltalirz opened this issue Feb 10, 2023 · 1 comment

Comments

@ltalirz
Copy link

ltalirz commented Feb 10, 2023

I notice I can build scine-utilities fine with gcc 11.3.0 but with 12.2.0 I get errors like

>> 828    /tmp/root/spack-stage/spack-stage-scine-utilities-6.0.0-tyayl46ngbiux5dg6kqdx7fubcop3agi/spack-src/src/Utils/Utils/IO/ChemicalFileFormats/ChemicalFileHandler.cpp:24:20: error: 'unique_ptr' is not a member of 'std'

I don't fully understand what's happening here - unique_ptr should have been introduced with c++11 and  I see the c++ standard is set to 17 here

set(CMAKE_CXX_STANDARD 17 PARENT_SCOPE)

@ltalirz
Copy link
Author

ltalirz commented Feb 10, 2023

@nabbelbabbel points out to add

 "include <memory>"

in the corresponding ChemicalFileHandler.cpp source file

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