You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler (clang++ 13 in my case) whines that it cannot find several templates (namely: ostis-dev-sc-machine/sc-memory/sc-memory/sc_template_generate.hpp:16:23: error: no template named 'optional' in namespace 'std', ostis-dev-sc-machine/sc-memory/sc-memory/sc_template.hpp:39:15: error: no member named 'make_unique' in namespace 'std') which have been introduced in C++17 and C++14, respectively. I saw a hardcoded stdc++17 flag for multiple compilers, the problem is that on newer macOS-es or exotic compilers, this won't work. In general, it is better to use
set (CMAKE_CXX_STANDARD 17)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
in CMake to resolve this problem (it worked for me btw).
The text was updated successfully, but these errors were encountered:
The compiler (clang++ 13 in my case) whines that it cannot find several templates (namely:
ostis-dev-sc-machine/sc-memory/sc-memory/sc_template_generate.hpp:16:23: error: no template named 'optional' in namespace 'std'
,ostis-dev-sc-machine/sc-memory/sc-memory/sc_template.hpp:39:15: error: no member named 'make_unique' in namespace 'std'
) which have been introduced in C++17 and C++14, respectively. I saw a hardcodedstdc++17
flag for multiple compilers, the problem is that on newer macOS-es or exotic compilers, this won't work. In general, it is better to usein CMake to resolve this problem (it worked for me btw).
The text was updated successfully, but these errors were encountered: