In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmTypes.cpp:15: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmTypeExtensions.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmDevice.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmPolicy.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/Tpm2.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/Serialize.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/Crypto.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/stdafx.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmAuthSessions.cpp:8: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmStructure.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Src/stdafx.h:32, from Src/TpmHelpers.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Samples/stdafx.h:52, from Samples/DocSamples.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; Samples/DocSamples.cpp: In member function ‘void Samples::Errors()’: Samples/DocSamples.cpp:62:25: warning: catching polymorphic type ‘class std::system_error’ by value [-Wcatch-value=] catch (system_error e) { ^ Samples/DocSamples.cpp: In member function ‘void Samples::ThreeElementPolicy()’: Samples/DocSamples.cpp:363:12: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] catch (exception) { ^~~~~~~~~ In file included from include/Tss.h:8, from include/Tpm2.h:22, from Samples/stdafx.h:52, from Samples/TpmConfig.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Samples/stdafx.h:52, from Samples/TpmCppTest.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Samples/stdafx.h:52, from Samples/Samples.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; In file included from include/Tss.h:8, from include/Tpm2.h:22, from Samples/stdafx.h:52, from Samples/stdafx.cpp:6: include/TpmTypes.h: In member function ‘bool TpmCpp::TPMS_PCR_SELECTION::PcrIsSelected(UINT32)’: include/TpmTypes.h:3656:35: warning: suggest parentheses around assignment used as truth value [-Wparentheses] return pcrSelect[pcr / 8] = (1 << (pcr % 8)) != 0; Samples/Samples.cpp: In member function ‘void Samples::PolicyPCRSample()’: Samples/Samples.cpp:1342:12: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] catch (exception) { ^~~~~~~~~ Samples/Samples.cpp: In member function ‘void Samples::PolicyORSample()’: Samples/Samples.cpp:1527:12: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] catch (exception) { ^~~~~~~~~ Samples/Samples.cpp: In member function ‘void Samples::PolicyCounterTimerSample()’: Samples/Samples.cpp:1965:16: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] catch (exception) { ^~~~~~~~~ Samples/Samples.cpp: In member function ‘void Samples::Unseal()’: Samples/Samples.cpp:2125:12: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] catch (exception) { ^~~~~~~~~ Samples/Samples.cpp: In member function ‘void Samples::PolicyNVSample()’: Samples/Samples.cpp:3218:12: warning: catching polymorphic type ‘class std::exception’ by value [-Wcatch-value=] catch (exception) { ^~~~~~~~~ CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:19: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmMarshal.h:8: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Helpers.h:55:8: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' string EnumToStr(E enumMemberVal) ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:20: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmDevice.h:239:12: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' string HostName; ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:20: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmDevice.h:217:25: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' TpmTcpDevice(string hostName = "127.0.0.1", int port = 2321); ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:22: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tss.h:8: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmTypes.h:16: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmStructure.h:10: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Serialize.h:200:34: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' static constexpr auto npos = string::npos; ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:22: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tss.h:8: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmTypes.h:16: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmStructure.h:10: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Serialize.h:202:13: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' string my_buf; ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:22: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tss.h:8: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmTypes.h:16: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmStructure.h:10: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Serialize.h:296:29: error: return type of virtual function 'with' is not covariant with the return type of the function it overrides ('TpmCpp::TextSerializer &' is not derived from 'TpmCpp::Serializer &') virtual TextSerializer& with(const char* name = "", const char* type = "", ~~~~~~~~~~~~~~~ ^ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Serialize.h:79:25: note: overridden virtual function is here virtual Serializer& with(const char* name = "", const char* type = "", ~~~~~~~~~~~ ^ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Serialize.h:223:34: error: reference to type 'const std::__1::string' (aka 'const basic_string, allocator >') could not bind to an lvalue of type 'const char [1]' void WriteLine(const string& str = ""); ^ ~~ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Serialize.h:223:34: note: passing argument to parameter 'str' here /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Serialize.h:220:31: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' void Indent() { my_buf += string(my_indent, ' '); } ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:22: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tss.h:8: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmTypes.h:16: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmStructure.h:10: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Serialize.h:270:41: error: use of undeclared identifier 'isdigit' static bool isdnum(char c) { return isdigit(c) || c == '-' || c == '+'; } ^ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:22: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tss.h:8: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmTypes.h:16: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmStructure.h:51:12: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' string ToString(bool precise = true) ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:22: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tss.h:8: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmTypes.h:16: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmStructure.h:54:16: error: cannot initialize object parameter of type 'TpmCpp::TextSerializer' with an expression of type 'TpmCpp::PlainTextSerializer' return buf.Serialize(this); ^~~ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:22: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tss.h:22: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:57:12: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' string Tag; ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:22: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tss.h:22: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:74:12: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' string GetTag() const { return Tag; } ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:22: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tss.h:22: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:151:55: error: implicit instantiation of undefined template 'std::__1::basic_string, std::__1::allocator >' TPM_RC Execute(Tpm2& tpm, AUTH_SESSION& s, string branchId = "leaf"); ^ /usr/include/c++/v1/iosfwd:193:32: note: template is declared here class _LIBCPP_TEMPLATE_VIS basic_string; ^ In file included from /home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/test_package.cpp:1: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tpm2.h:22: In file included from /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/Tss.h:22: /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:177:58: error: reference to type 'const std::__1::string' (aka 'const basic_string, allocator >') could not bind to an lvalue of type 'const char [1]' PolicyLocality(TPMA_LOCALITY locality, const string& tag = "") ^ ~~ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:177:58: note: passing argument to parameter 'tag' here /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:181:11: error: no matching constructor for initialization of 'TpmCpp::PABase' : PABase(r), Locality(r.Locality) ^ ~ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:66:5: note: candidate constructor not viable: no known conversion from 'const TpmCpp::PolicyLocality' to 'const TpmCpp::PABase' for 1st argument PABase(const PABase& r) : Tag(r.Tag) {} ^ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:67:5: note: candidate constructor not viable: no known conversion from 'const TpmCpp::PolicyLocality' to 'const std::__1::string' (aka 'const basic_string, allocator >') for 1st argument PABase(const string& tag) : Tag(tag) {} ^ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:65:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided PABase() {}; ^ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:187:44: error: cannot initialize return object of type 'TpmCpp::PABase *' with an rvalue of type 'TpmCpp::PolicyLocality *' virtual PABase* Clone() const { return new PolicyLocality(*this); } ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:195:42: error: reference to type 'const std::__1::string' (aka 'const basic_string, allocator >') could not bind to an lvalue of type 'const char [1]' PolicyPhysicalPresence(const string& tag = "") : PABase(tag) {} ^ ~~ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:195:42: note: passing argument to parameter 'tag' here /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:196:63: error: no matching constructor for initialization of 'TpmCpp::PABase' PolicyPhysicalPresence(const PolicyPhysicalPresence& r) : PABase(r) {} ^ ~ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:66:5: note: candidate constructor not viable: no known conversion from 'const TpmCpp::PolicyPhysicalPresence' to 'const TpmCpp::PABase' for 1st argument PABase(const PABase& r) : Tag(r.Tag) {} ^ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:67:5: note: candidate constructor not viable: no known conversion from 'const TpmCpp::PolicyPhysicalPresence' to 'const std::__1::string' (aka 'const basic_string, allocator >') for 1st argument PABase(const string& tag) : Tag(tag) {} ^ /home/conan/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/package/8042be0f846e2fe02fa53450f3ce67f0d281f7dd/include/TpmPolicy.h:65:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided PABase() {}; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [CMakeFiles/test_package.dir/build.make:82: CMakeFiles/test_package.dir/test_package.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/test_package.dir/all] Error 2 make: *** [Makefile:103: all] Error 2 ERROR: tssmsr/cci.20201117 (test package): Error in build() method, line 12 cmake.build() ConanException: Error 2 while executing cmake --build '/home/conan/w/cci_PR-4552/1/3612cfc1-a018-4164-99b8-05e9c38b8864/recipes/tssmsr/all/test_package/build/c4bb6e39a5fefd46637f533b3b679d6897c6d251' '--' '-j3'