In file included from Src/TpmStructure.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: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 ^ 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; ^ 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/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/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; ^ 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; ^ 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' include/fdefs.h: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/TpmDevice.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 memberinclude/fdefs.h:113:53: error: use of undeclared identifier 'UINT32' EXPIMP_TEMPLATE template class _DLLEXP_ std::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/TpmDevice.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 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 include/fdefs.h112:include/fdefs.h113:46: error: expected unqualified-id ::EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ 53112:53: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; ^ error: use of undeclared identifier 'BYTE' /Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vectorerrorEXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ :: 470:include/fdefs.h28: note: explicit instantiation refers here use of undeclared identifier 'BYTE' :class _LIBCPP_TEMPLATE_VIS vector EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ ^ 112:46: error: include/fdefs.h:expected unqualified-id112: In file included from 46: error: Src/Tpm2.cpp:expected unqualified-id 6: In file included from EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ 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:In file included from Src/Tpm2.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 6: In file included from Src/stdafx.h:class _LIBCPP_TEMPLATE_VIS vector29: include/fdefs.h:95:24: error: use of undeclared identifier 'BYTE' 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 using ByteVec = vector; ^ class _LIBCPP_TEMPLATE_VIS basic_string ^ 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 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 hereinclude/fdefs.h:113:53: error: use of undeclared identifier 'UINT32' include/fdefs.h:113EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ :53:include/fdefs.h:113:46: error: expected unqualified-id error : include/fdefs.h:use of undeclared identifier 'UINT32' 112:53:EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; errorclass _LIBCPP_TEMPLATE_VIS vector: use of undeclared identifier 'BYTE' ^ EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ 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.hinclude/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 :113:46: error: expected unqualified-id EXPIMP_TEMPLATE template class _DLLEXP_ std::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: noteinclude/fdefs.h: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS vector ^ :114:46: error: explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data memberIn file included from Src/Crypto.cpp:6: ^ In file included from Src/stdafx.h:29: In 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 include/fdefs.h:115:46: EXPIMP_TEMPLATE template class _DLLEXP_ std::basic_string; ^ error/Applications/Xcode-11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:667:28: note: explicit instantiation refers here : explicit instantiation of 'vector' does not refer to a function template, variable template, member function, member class, or static data memberclass _LIBCPP_TEMPLATE_VIS basic_string ^ 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 ^ EXPIMP_TEMPLATE template class _DLLEXP_ std::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 ^ /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:8: 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 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 ^ In file included from Src/TpmPolicy.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: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/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 ^ In file included from 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: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/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 _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ; 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: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=] 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: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/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:22:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ; In file included from Src/TpmAuthSessions.cpp:8: 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/TpmAuthSessions.cpp:8: 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); ^ ; In 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); ^ include/fdefs.h:112:32: note: forward declaration of '_DLLEXP_' EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ In 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:21: error: expected ';' after top level declarator _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ; 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; ^ 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: 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/TpmHelpers.cpp:6: In file included from 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); ^ ; 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: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/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 include/Helpers.h:33:Src/stdafx.hinclude/Helpers.h:28:28: error: use of undeclared identifier 'RandomBytes' _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ; :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_' 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 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: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.hinclude/Helpers.h _DLLEXP_ ByteVec RandomBytes(size_t numBytes);EXPIMP_TEMPLATE template class _DLLEXP_ std::vector;: ^ 28:28: error: use of undeclared identifier 'RandomBytes' :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: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 ^ include/Helpers.hIn file included from Src/TpmHelpers.cpp:6 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: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); ^: 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); ^ ; :28:28: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ _DLLEXP_ ByteVec Concatenate(const vector& v); ^ ; 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 include/Helpers.h _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:In file included from Src/TpmPolicy.cpp:6: In file included from Src/stdafx.h:32:: In file included from 40:21: error: expected ';' after top level declarator14 :include/Helpers.h _DLLEXP_ ByteVec Concatenate(const vector& v); ^include/Tpm2.h ; :43:14include/Helpers.h::43:14note: error: redefinition of 'ByteVec' : previous definition is here _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ include/Helpers.h::37:14: _DLLEXP_ ByteVec RandomBytes(size_t numBytes);note: 19: In file included from previous definition is here error: _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); ^ redefinition of 'ByteVec' include/Helpers.h:43: _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf);21: error ^ include/TpmMarshal.h: expected ';' after top level declarator ^ _DLLEXP_ ByteVec TrimTrailingZeros(const ByteVec& buf); ^ ; include/Helpers.h:28include/Helpers.h::37include/Helpers.h28:: error: use of undeclared identifier 'RandomBytes' 46:14: error:: 14: :noteinclude/Helpers.h: :previous definition is here redefinition of 'ByteVec' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; _DLLEXP_ ByteVec Concatenate(const ByteVec& buf1, const ByteVec& buf2); _DLLEXP_ ByteVec ShiftRight(const ByteVec& buf, size_t numBits); ^ ^ ^ include/Helpers.h:4340: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=]8include/Helpers.h: :include/Helpers.h:21include/Helpers.h22:14: error: variable has incomplete type '_DLLEXP_' _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ include/fdefs.h:112:32: 33:note : forward declaration of '_DLLEXP_' :52: error: use of undeclared identifier 'RandomBytes' return (int32_t)(lowerBound + (*(uint32_t*)RandomBytes(4).data()) % ((uint32_t)upperBound - lowerBound)); ^ include/Helpers.h::40:14: 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 _DLLEXP_ ByteVec RandomBytes(size_t numBytes); ^ ; 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=] note: previous definition is here _DLLEXP_ ByteVec Concatenate(const vector& v); ^ 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:33: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:28:28: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ 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); ^ ; 20 errorsinclude/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=] fatal error: too many errors emitted, stopping now [-ferror-limit=] include/Helpers.h:33:52: error: use of undeclared identifier 'RandomBytes' generated. 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=] make: *** [bin/obj/Src/debug/TpmStructure.o] Error 1 make: *** Waiting for unfinished jobs.... 20 errors generated. 20 errors generated. 20 errors generated. make: *** [bin/obj/Src/debug/TpmDevice.o] Error 1 make: *** [bin/obj/Src/debug/TpmAuthSessions.o] Error 1 make: *** [bin/obj/Src/debug/Tpm2.o] Error 1 20 errors generated. make: *** [bin/obj/Src/debug/Serialize.o] Error 1 20 errors generated. 20 errors generated. make: *** [bin/obj/Src/debug/TpmPolicy.o] Error 1 make: *** [bin/obj/Src/debug/TpmHelpers.o] Error 1 20 errors generated. make: *** [bin/obj/Src/debug/Crypto.o] Error 1 tssmsr/cci.20201117: WARN: Build folder is dirty, removing it: /Users/jenkins/w/cci_PR-4552@2/.conan/data/tssmsr/cci.20201117/_/_/build/9a8f1d3e90fb0ecc3d490e688e51fd6f12c52968 tssmsr/cci.20201117: ERROR: Package '9a8f1d3e90fb0ecc3d490e688e51fd6f12c52968' build failed tssmsr/cci.20201117: WARN: Build folder /Users/jenkins/w/cci_PR-4552@2/.conan/data/tssmsr/cci.20201117/_/_/build/9a8f1d3e90fb0ecc3d490e688e51fd6f12c52968 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=debug' '-C' 'source_subfolder/TSS.CPP' -j8