electronic-structure / SIRIUS

Domain specific library for electronic structure calculations
BSD 3-Clause "New" or "Revised" License
125 stars 40 forks source link

Build fails: error: implicit instantiation of undefined template 'std::basic_stringstream<char>' #946

Closed yurivict closed 3 months ago

yurivict commented 9 months ago
In file included from /usr/ports/science/sirius/work/SIRIUS-7.5.0/src/core/ostream_tools.cpp:25:
/usr/ports/science/sirius/work/SIRIUS-7.5.0/src/core/ostream_tools.hpp:163:23: error: implicit instantiation of undefined template 'std::basic_stringstream<char>'
    std::stringstream fmt;
                      ^
/usr/include/c++/v1/iosfwd:134:32: note: template is declared here
    class _LIBCPP_TEMPLATE_VIS basic_stringstream;
                               ^
1 error generated.

This is because src/core/ostream_tools.hpp doesn't have #include <sstream>.

Version: 7.5.0 clang-16 FreeBSD 14.0

toxa81 commented 9 months ago

Hello @yurivict ! Can you recommend a base container with FreeBSD 14.0 and steps that you usually do to build your software. I'm thinking of adding FreeBSD to our CI/CD pipeline.

toxa81 commented 3 months ago

#include <sstream> is added in the development version.