In file included from Src/Serialize.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:95:24: error: use of undeclared identifier 'BYTE' using ByteVec = vector; ^ In file included from Src/Tpm2.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:95:24: error: use of undeclared identifier 'BYTE' using ByteVec = vector; ^ In file included from Src/Crypto.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:95:24: error: use of undeclared identifier 'BYTE' using ByteVec = vector; ^ In file included from Src/TpmDevice.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:95:24: error: use of undeclared identifier 'BYTE' using ByteVec = vector; ^ include/fdefs.h:112:53: error: use of undeclared identifier 'BYTE' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:112:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:112:53: error: use of undeclared identifier 'BYTE' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:112:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:112:53: error: use of undeclared identifier 'BYTE' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:112:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:112:53: error: use of undeclared identifier 'BYTE' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:112:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:113:53: error: use of undeclared identifier 'UINT32' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:113:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:114:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/Serialize.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:115:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member In file included from Src/TpmAuthSessions.cpp:8: In file included from Src/stdafx.h:29: include/fdefs.h:95:24: error: use of undeclared identifier 'BYTE' using ByteVec = vector; ^ include/fdefs.h:113:53: error: use of undeclared identifier 'UINT32' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:113:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:114:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/Tpm2.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:115:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers hereEXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ In file included from Src/TpmPolicy.cpp:/Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here 6: class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/stdafx.h:29: include/fdefs.h:95:24In file included from Src/Serialize.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:116:46: error: explicit instantiation of 'basic_string' does not refer to a function template, variable template, member function, member class, or static data member : error: use of undeclared identifier 'BYTE' class _LIBCPP_TEMPLATE_VIS vector EXPIMP_TEMPLATE template class _DLLEXP_ std::basic_string; using ByteVec = vector; ^ ^ ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:667:28: note: explicit instantiation refers here In file included from Src/Tpm2.cppclass _LIBCPP_TEMPLATE_VIS basic_string ^ :6: In file included from Src/stdafx.h:include/fdefs.h:113:53include/fdefs.h:113:53: error: use of undeclared identifier 'UINT32' : error: EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ use of undeclared identifier 'UINT32' include/fdefs.h:113:EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ 46include/fdefs.h:113:46: error: expected unqualified-id : error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ 29: include/fdefs.h:116:46: error: explicit instantiation of 'basic_string' does not refer to a function template, variable template, member function, member class, or static data member include/fdefs.h:114:46:EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member include/fdefs.h:114:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here EXPIMP_TEMPLATE template class _DLLEXP_ std::basic_string;class _LIBCPP_TEMPLATE_VIS vector ^ ^ In file included from Src/TpmDevice.cpp:6: In file included from Src/stdafx.h:In file included from Src/TpmStructure.cpp:29: include/fdefs.h:115:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ 667:28: 6note: /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:: 28: include/fdefs.hnoteexplicit instantiation refers here: explicit instantiation refers hereIn file included from EXPIMP_TEMPLATE template class _DLLEXP_ std::vector;Src/stdafx.h ^:class _LIBCPP_TEMPLATE_VIS vector: ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:47029:In file included from : Src/TpmDevice.cpp28:: note: 112 6:: explicit instantiation refers hereIn file included from Src/stdafx.h:53: include/fdefs.h29: errorinclude/fdefs.h: ::116use of undeclared identifier 'BYTE' :95:46EXPIMP_TEMPLATE template class _DLLEXP_ std::vector;: In file included from class _LIBCPP_TEMPLATE_VIS vector 24 ^ ^ class _LIBCPP_TEMPLATE_VIS basic_string ^ In file included from Src/Crypto.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:115:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.hSrc/TpmHelpers.cpp: 112:53: error: :use of undeclared identifier 'BYTE'/Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vectorinclude/fdefs.herror:: 6: In file included from : 112EXPIMP_TEMPLATE template class _DLLEXP_ std::vector;explicit instantiation of 'basic_string' does not refer to a function template, variable template, member function, member class, or static data member ^ EXPIMP_TEMPLATE template class _DLLEXP_ std::basic_string; include/fdefs.h ^error :/Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:: Src/stdafx.h667:46112:::: 29:error: 46use of undeclared identifier 'BYTE': : error: expected unqualified-id using ByteVec = vector;28include/fdefs.h :EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; expected unqualified-id ^ ^ 470note: explicit instantiation refers here :class _LIBCPP_TEMPLATE_VIS basic_string EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ 95:24: error: use of undeclared identifier 'BYTE' :28: note: explicit instantiation refers here ^class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/Crypto.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:116:46: error: explicit instantiation of 'basic_string' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::basic_string; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:667:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS basic_string ^ include/fdefs.h:113:53: error: use of undeclared identifier 'UINT32' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:113:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:114:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member include/fdefs.h using ByteVec = vector; ^ EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/TpmPolicy.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:115:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/TpmPolicy.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:116:46: error: explicit instantiation of 'basic_string' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::basic_string; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:667:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS basic_string ^ :112:53: error: use of undeclared identifier 'BYTE' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:112:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:112:53: error: use of undeclared identifier 'BYTE' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:112:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:113:53: error: use of undeclared identifier 'UINT32' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:113:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:114:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/TpmAuthSessions.cpp:8: In file included from Src/stdafx.h:29: include/fdefs.h:115:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/TpmAuthSessions.cpp:8include/fdefs.h:113:53: error: use of undeclared identifier 'UINT32' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:113:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:114:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/TpmStructure.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:115:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/TpmStructure.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:116:46: error: explicit instantiation of 'basic_string' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::basic_string; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:667:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS basic_string ^ include/fdefs.h:113:53: error: use of undeclared identifier 'UINT32' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/fdefs.h:113:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ : In file included from include/fdefs.h:114:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/TpmHelpers.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:115:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:470:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS vector ^ In file included from Src/TpmHelpers.cpp:6: In file included from Src/stdafx.h:29: include/fdefs.h:116:46: error: explicit instantiation of 'basic_string' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::basic_string; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:667:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS basic_string ^ Src/stdafx.h:29: include/fdefs.h:116:46: error: explicit instantiation of 'basic_string' does not refer to a function template, variable template, member function, member class, or static data member EXPIMP_TEMPLATE template class _DLLEXP_ std::basic_string; ^ /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:667:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS basic_string ^ In file included from Src/Serialize.cpp:6: In file included from Src/stdafx.h:32: In file included from include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:14: error: In file included from Src/TpmDevice.cpp:6: In file included from Src/stdafx.h:32: In file included from include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22In file included from Src/Tpm2.cpp:6: In file included from Src/stdafx.h:32: In file included from include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:14: error: variable has incomplete type '_DLLEXP_' :14In file included from Src/Crypto.cpp:6: In file included from Src/stdafx.h:32: In file included from include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:14: error: variable has incomplete type '_DLLEXP_' : _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ error: variable has incomplete type '_DLLEXP_' variable has incomplete type '_DLLEXP_' _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ _DLLEXP_ ByteVec RandomBytes(size_t numBytes);include/fdefs.h:include/fdefs.h:112:112:32: note _DLLEXP_ ByteVec RandomBytes(size_t numBytes);: 32: note: forward declaration of '_DLLEXP_' forward declaration of '_DLLEXP_' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ In file included from Src/TpmDevice.cppIn file included from Src/Crypto.cpp:6: In file included from Src/stdafx.h:32: In file included from :include/Tpm2.h:19: In file included from include/TpmMarshal.h:8 ^ 6: : In file included from include/Helpers.h:22:21: error: expected ';' after top level declarator Src/stdafx.h:32: In file included from include/Tpm2.h:19: include/fdefs.hIn file included from _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ; include/TpmMarshal.h:8: include/Helpers.h:22:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ; In file included from : ^ include/fdefs.h:112:32: note: forward declaration of '_DLLEXP_' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ In file included from Src/Tpm2.cpp:6: In file included from Src/stdafx.h:32: In file included from include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ; 112:32: note: forward declaration of '_DLLEXP_' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ In file included from Src/Serialize.cpp:6: In file included from Src/stdafx.h:32: In file included from include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ; Src/TpmPolicy.cpp:6: In file included from Src/stdafx.h:32: In file included from include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:14: error: variable has incomplete type '_DLLEXP_' _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ include/fdefs.h:112:32: note: forward declaration of '_DLLEXP_' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ In file included from Src/TpmPolicy.cpp:6: In file included from Src/stdafx.h:32: In file included from include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:21: error: expected ';' after top level declarator include/Helpers.h:28:28: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ include/Helpers.h:28:28: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ include/Helpers.h:33:52: error: use of undeclared identifier 'RandomBytes' return (int32_t)(lowerBound + (*(uint32_t*)RandomBytes(4).data()) % ((uint32_t)upperBound - lowerBound)); ^ include/Helpers.h:28:28include/Helpers.hinclude/Helpers.h: _DLLEXP_ ByteVec RandomBytes(size_t numBytes);: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ In file included from Src/TpmAuthSessions.cpp::8: In file included from Src/stdafx.h2837::2814: error: :use of undeclared identifier 'RandomBytes' error: : return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; redefinition of 'ByteVec' ^ ^ ; _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ 32: In file included from include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:14: error: variable has incomplete type '_DLLEXP_' include/Helpers.h:22:14: note: previous definition is here _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ include/fdefs.h:112:32: note: forward declaration of '_DLLEXP_' include/Helpers.h:37:EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ 21: error: expected ';' after top level declarator _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ ; In file included from Src/TpmAuthSessions.cpp:8In file included from include/Helpers.h:: In file included from Src/stdafx.h:32: In file included from Src/TpmHelpers.cpp40:14: error: redefinition of 'ByteVec' include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec Concatenate(const vector& v);:6: _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ^ ;In file included from include/Helpers.hSrc/TpmStructure.cpp:6: In file included from Src/stdafx.h:32: In file included from include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:14: error: variable has incomplete type '_DLLEXP_' : 22:14: note: previous definition is here _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ include/fdefs.h:112:32: note: In file included from include/Helpers.h:40:21: error: Src/stdafx.hexpected ';' after top level declaratorinclude/Helpers.h :forward declaration of '_DLLEXP_' _DLLEXP_ ByteVec Concatenate(const vector& v); ^ : ;33 :EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^include/Helpers.h:43:14: error: redefinition of 'ByteVec' 52: error: _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ use of undeclared identifier 'RandomBytes' include/Helpers.h:3732: In file included from : return (int32_t)(lowerBound + (*(uint32_t*)RandomBytes(4).data()) % ((uint32_t)upperBound - lowerBound));14: note: previous definition is here ^ In file included from _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ Src/TpmStructure.cpp:6: In file included from Src/stdafx.h:32: In file included from include/Tpm2.h:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:21: error: expected ';' after top level declarator include/Helpers.hinclude/Helpers.h::37:14: error: redefinition of 'ByteVec' 43:21: _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ errorinclude/Helpers.h:22:14: note: previous definition is here : _DLLEXP_ ByteVec RandomBytes(size_t numBytes);expected ';' after top level declarator ^ ;include/Tpm2.h _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ ; include/Helpers.h _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^: include/Helpers.h:46:14: error: include/Helpers.h:37:21: error: expected ';' after top level declarator redefinition of 'ByteVec' 33:: _DLLEXP_ ByteVec ShiftRight(const ByteVec& buf, size_t numBits); ^ _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); include/Helpers.h:40:14: note: previous definition is here ^52: _DLLEXP_ ByteVec Concatenate(const vector& v); ^ error: use of undeclared identifier 'RandomBytes' include/Helpers.hfatal error:: too many errors emitted, stopping now [-ferror-limit=] 33: ; 52: error: use of undeclared identifier 'RandomBytes' include/Helpers.h: return (int32_t)(lowerBound + (*(uint32_t*)RandomBytes(4).data()) % ((uint32_t)upperBound - lowerBound));40:14 return (int32_t)(lowerBound + (*(uint32_t*)RandomBytes(4).data()) % ((uint32_t)upperBound - lowerBound)); ^ ^ : error: include/Helpers.hredefinition of 'ByteVec': include/Helpers.h:28 _DLLEXP_ ByteVec Concatenate(const vector& v);37 : ^14 : error: :redefinition of 'ByteVec' include/Helpers.h28:37:14: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); include/Helpers.h ^ _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); include/Helpers.h:2219::1422:: ^note : include/Helpers.h:previous definition is here 22:: In file included from include/TpmMarshal.h:8: _DLLEXP_ ByteVec RandomBytes(size_t numBytes);14 : ^ note: :previous definition is here error _DLLEXP_ ByteVec RandomBytes(size_t numBytes);include/Helpers.h : ^ 37:21: error: expected ';' after top level declarator : 14: note: _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2);previous definition is here ^ ; _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ use of undeclared identifier 'RandomBytes'include/Helpers.h:40:include/Helpers.h14include/Helpers.h:: 40 include/Helpers.herror: return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound;: redefinition of 'ByteVec' ^ include/Helpers.h28: _DLLEXP_ ByteVec Concatenate(const vector& v);37: 21: error: ^expected ';' after top level declarator :: _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ ; include/Helpers.h28::2122: 14: note: errorprevious definition is here include/Helpers.h:: _DLLEXP_ ByteVec RandomBytes(size_t numBytes);40: 14: error: ^redefinition of 'ByteVec' : error: _DLLEXP_ ByteVec Concatenate(const vector& v); ^ expected ';' after top level declaratorinclude/Helpers.h: 40:21: error: expected ';' after top level declarator use of undeclared identifier 'RandomBytes' _DLLEXP_ ByteVec Concatenate(const vector& v); ^ ; include/Helpers.h _DLLEXP_ ByteVec Concatenate(const vector& v);include/Helpers.h:43 :14: error ^: include/Helpers.h return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound;redefinition of 'ByteVec' : _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ; ^ ^ 22:include/Helpers.h14:37:14:include/Helpers.h note: :previous definition is here :: _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ 43note: :previous definition is hereinclude/Helpers.h14:2843:: 21: error: :expected ';' after top level declarator28: _DLLEXP_ ByteVec RandomBytes(size_t numBytes);error _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); : ^use of undeclared identifier 'RandomBytes' ; error: include/Helpers.h:redefinition of 'ByteVec'46:14: error: redefinition of 'ByteVec' ^ _DLLEXP_ ByteVec ShiftRight(const ByteVec& buf, size_t numBits); ^ include/Helpers.h: _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf);40:14:include/Helpers.h note: previous definition is here ^ return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; _DLLEXP_ ByteVec Concatenate(const vector& v); ^ include/Helpers.h ^:fatal error37:: 14: note: too many errors emitted, stopping now [-ferror-limit=]previous definition is here : 40:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec Concatenate(const vector& v); ^ ; include/Helpers.h:43:14: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ include/Helpers.h:37:14: note: previous definition is here _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ include/Helpers.h:43:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ ; include/Helpers.hinclude/Helpers.h:::22:46:14: error14: redefinition of 'ByteVec' 33:52: _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); error ^ : error: variable has incomplete type '_DLLEXP_' _DLLEXP_ ByteVec RandomBytes(size_t numBytes); include/Helpers.h:43 _DLLEXP_ ByteVec ShiftRight(const ByteVec& buf, size_t numBits);:21: ^ errorinclude/fdefs.h:112:32: note: : forward declaration of '_DLLEXP_'expected ';' after top level declarator ^ : _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); use of undeclared identifier 'RandomBytes' ^ ; return (int32_t)(lowerBound + (*(uint32_t*)RandomBytes(4).data()) % ((uint32_t)upperBound - lowerBound)); ^ EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ include/Helpers.h:37:14: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ In file included from include/Helpers.h:include/Helpers.h46:14include/Helpers.h: error: :redefinition of 'ByteVec' 40:14: note: previous definition is here :22:14: note _DLLEXP_ ByteVec ShiftRight(const ByteVec& buf, size_t numBits);: previous definition is here ^ _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ include/Helpers.h:40:14: note: previous definition is here include/Helpers.h:37:21:Src/TpmHelpers.cppinclude/Helpers.h :error33:: 52: error: _DLLEXP_ ByteVec Concatenate(const vector& v);use of undeclared identifier 'RandomBytes' expected ';' after top level declarator ^ return (int32_t)(lowerBound + (*(uint32_t*)RandomBytes(4).data()) % ((uint32_t)upperBound - lowerBound)); ^: _DLLEXP_ ByteVec Concatenate(const vector& v); ^ _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); 6: In file included from Src/stdafx.h:include/Helpers.h ^: ; 32: include/Helpers.h:40fatal error:: 37:1414too many errors emitted, stopping now [-ferror-limit=]: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ include/Helpers.h:22:14:In file included from note: :previous definition is here error: redefinition of 'ByteVec' fatal error: too many errors emitted, stopping now [-ferror-limit=] _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ _DLLEXP_ ByteVec Concatenate(const vector& v); ^ include/Helpers.h:22:14: note: previous definition is here include/Helpers.h:37:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ ; include/Helpers.h:40:14: error: redefinition of 'ByteVec' include/Helpers.h:40:21: error: expected ';' after top level declarator include/Helpers.h:33:52: error: use of undeclared identifier 'RandomBytes' _DLLEXP_ ByteVec Concatenate(const vector& v); ^ include/Helpers.h:22include/Tpm2.h: _DLLEXP_ ByteVec Concatenate(const vector& v); 14: note: ^ ; previous definition is here return (int32_t)(lowerBound + (*(uint32_t*)RandomBytes(4).data()) % ((uint32_t)upperBound - lowerBound));:19: In file included from include/TpmMarshal.h:8: include/Helpers.h:22:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ; _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ^ include/Helpers.h:37:14: error: redefinition of 'ByteVec' include/Helpers.h:40:21:include/Helpers.h error: expected ';' after top level declarator :43:14: _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ include/Helpers.h:22:14: note: previous definition is here error: redefinition of 'ByteVec' _DLLEXP_ ByteVec Concatenate(const vector& v); ^ ; _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ include/Helpers.h:43:14: error: redefinition of 'ByteVec' include/Helpers.h: _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ 37 _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ :21: error: expected ';' after top level declarator include/Helpers.h:37:14: note: previous definition is here _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ ; include/Helpers.h:37:14: note: previous definition is here include/Helpers.h:40:14: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ _DLLEXP_ ByteVec Concatenate(const vector& v); ^ include/Helpers.h:22:include/Helpers.h:43:21: error: expected ';' after top level declarator 14: note: previous definition is here _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ ; include/Helpers.h:46:14: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ _DLLEXP_ ByteVec ShiftRight(const ByteVec& buf, size_t numBits); ^ include/Helpers.h:40:14: note: previous definition is here include/Helpers.h:43 _DLLEXP_ ByteVec Concatenate(const vector& v); ^ :21: error: expected ';' after top level declarator include/Helpers.h:40:21: _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ ; error: expected ';' after top level declarator include/Helpers.h:46:14: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec Concatenate(const vector& v); ^ _DLLEXP_ ByteVec ShiftRight(const ByteVec& buf, size_t numBits); ^ ; include/Helpers.h:40:14fatal error: too many errors emitted, stopping now [-ferror-limit=] : note: previous definition is here _DLLEXP_ ByteVec Concatenate(const vector& v); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] include/Helpers.h:43:14: error: redefinition of 'ByteVec' include/Helpers.h:28:28: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ include/Helpers.h:37:14: note: previous definition is here _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ include/Helpers.h:43:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ ; include/Helpers.h:46:14: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec ShiftRight(const ByteVec& buf, size_t numBits); ^ include/Helpers.h:40:14: note: previous definition is here _DLLEXP_ ByteVec Concatenate(const vector& v); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] include/Helpers.h:33:52: error: use of undeclared identifier 'RandomBytes' return (int32_t)(lowerBound + (*(uint32_t*)RandomBytes(4).data()) % ((uint32_t)upperBound - lowerBound)); ^ include/Helpers.h:37:14: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ include/Helpers.h:22:14: note: previous definition is here _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ include/Helpers.h:37:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ ; include/Helpers.h:40:14: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec Concatenate(const vector& v); ^ include/Helpers.h:22:14: note: previous definition is here _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ include/Helpers.h:40:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec Concatenate(const vector& v); ^ ; include/Helpers.h:43:14: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ include/Helpers.h:37:14: note: previous definition is here _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ include/Helpers.h:43:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ ; include/Helpers.h:46:14: error: redefinition of 'ByteVec' _DLLEXP_ ByteVec ShiftRight(const ByteVec& buf, size_t numBits); ^ include/Helpers.h:40:14: note: previous definition is here _DLLEXP_ ByteVec Concatenate(const vector& v); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. 20 errors generated. 20 errors generated. 20 errors generated. make: *** [bin/obj/Src/release/TpmDevice.o] Error 1 make: *** Waiting for unfinished jobs.... 20 errors generated. 20 errors generated. make: *** [bin/obj/Src/release/Tpm2.o] Error 1 make: *** [bin/obj/Src/release/TpmPolicy.o] Error 1 make: *** [bin/obj/Src/release/Serialize.o] Error 1 make: *** [bin/obj/Src/release/TpmAuthSessions.o] Error 1 20 errors generated. make: *** [bin/obj/Src/release/TpmStructure.o] Error 1 make: *** [bin/obj/Src/release/TpmHelpers.o] Error 1 20 errors generated. make: *** [bin/obj/Src/release/Crypto.o] Error 1 tssmsr/cci.20201117: WARN: Build folder is dirty, removing it: /Users/jenkins/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/build/abd8d60efb2ee0b86c4a52eced60e13f959e2771 tssmsr/cci.20201117: ERROR: Package 'abd8d60efb2ee0b86c4a52eced60e13f959e2771' build failed tssmsr/cci.20201117: WARN: Build folder /Users/jenkins/w/cci_PR-4552/.conan/data/tssmsr/cci.20201117/_/_/build/abd8d60efb2ee0b86c4a52eced60e13f959e2771 ERROR: tssmsr/cci.20201117: Error in build() method, line 70 args=[f"CONFIG={str(self.settings.build_type).lower()}", "-C", self._build_subfolder]) ConanException: Error 2 while executing make 'CONFIG=release' '-C' 'source_subfolder/TSS.CPP' -j8