Skip to content

Build issue: Build with clang 16 fails with undefined template 'std::basic_ostringstream<char>' error #331

@pelesh

Description

@pelesh

Build error message(s)

When building GridKit with clang 16 I get following build error:

$ make

...

Building CXX object GridKit/Model/PhasorDynamics/Branch/CMakeFiles/phasor_dynamics_branch.dir/BranchEnzyme.cpp.o
In file included from /Users/55y/src/gridkit/GridKit/GridKit/Model/PhasorDynamics/Branch/BranchEnzyme.cpp:9:
In file included from /Users/55y/src/gridkit/GridKit/GridKit/Model/PhasorDynamics/Branch/BranchImpl.hpp:16:
/Users/55y/src/gridkit/GridKit/GridKit/Model/VariableMonitorImpl.hpp:190:28: error: implicit instantiation of undefined template 'std::basic_ostringstream<char>'
        std::ostringstream v_os;
                           ^
/opt/local/libexec/llvm-16/bin/../include/c++/v1/iosfwd:131:32: note: template is declared here
    class _LIBCPP_TEMPLATE_VIS basic_ostringstream;

GridKit™ version

develop at 8f54253

System and environment details

  • MacOS 15.7.3
  • clang version 16.0.6 from MacPorts
  • arm cpu

Additional information

The issue does not show up when using GCC.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions