Skip to content

Conversation

@SpatLyu
Copy link
Member

@SpatLyu SpatLyu commented Feb 1, 2026

fix the following compliation failure in macos:

SymbolicDynamics.cpp:162:17: error: implicit instantiation of undefined template 'std::basic_string<char>'
    std::string pat;
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/iosfwd:209:32: note: template is declared here
    class _LIBCPP_TEMPLATE_VIS basic_string;
                               ^
In file included from SymbolicDynamics.cpp:1:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:428:64: error: implicit instantiation of undefined template 'std::basic_string<char>'
        __alloc_traits::destroy(__alloc(), _VSTD::__to_address(--__soon_to_be_end));
                                                               ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:371:29: note: in instantiation of member function 'std::__vector_base<std::basic_string<char>, std::allocator<std::basic_string<char>>>::__destruct_at_end' requested here
    void clear() _NOEXCEPT {__destruct_at_end(__begin_);}
                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:465:9: note: in instantiation of member function 'std::__vector_base<std::basic_string<char>, std::allocator<std::basic_string<char>>>::clear' requested here
        clear();
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/vector:497:5: note: in instantiation of member function 'std::__vector_base<std::basic_string<char>, std::allocator<std::basic_string<char>>>::~__vector_base' requested here
    vector() _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value)
    ^
SymbolicDynamics.cpp:152:28: note: in instantiation of member function 'std::vector<std::basic_string<char>>::vector' requested here
  std::vector<std::string> patterns;
                           ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/iosfwd:209:32: note: template is declared here
    class _LIBCPP_TEMPLATE_VIS basic_string;

…ure caused by implicit instantiation of undefined template
@SpatLyu SpatLyu self-assigned this Feb 1, 2026
…ure caused by implicit instantiation of undefined template
…lure caused by implicit instantiation of undefined template
@SpatLyu SpatLyu changed the title include missing string header to resolve macos clang compilation failure include missing string and utility header to resolve macos clang compilation failure Feb 1, 2026
@SpatLyu SpatLyu merged commit 339b965 into stscl:main Feb 1, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

1 participant