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; ^ 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; ^ 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; ^ 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 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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:630: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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 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; ^ EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:630:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS basic_string ^ In file included from Src/TpmHelpers.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: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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 EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:630:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS basic_string ^ 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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:630:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS basic_string ^ 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' In file included from EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; 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: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:630:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS basic_string ^ include/fdefs.h:112:53: error: use of undeclared identifier 'BYTE' 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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:630:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS basic_string ^ ^ 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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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 member EXPIMP_TEMPLATE template class _DLLEXP_ std::vector; ^ /Applications/Xcode-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:630: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: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:447: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-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:630:28: note: explicit instantiation refers here class _LIBCPP_TEMPLATE_VIS basic_string ^ 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); ^ ; include/Helpers.h:28:28: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ 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: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:28:28: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ 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: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/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 _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; ^ include/Helpers.h:28:28: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ 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); ^ ; 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=] include/Helpers.h:28:28: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ 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=] 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 include/Helpers.h:28:28: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ In file included from Src/TpmHelpers.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 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: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); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] _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=] include/Helpers.h:28:28: error: use of undeclared identifier 'RandomBytes' return (*(int32_t*)RandomBytes(4).data() & 0x7FFFFFFF) % upperBound; ^ 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/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' 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=] 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/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); ^ _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: errorinclude/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; ^ : 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 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=] 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 _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=] : 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. make: *** [bin/obj/Src/debug/TpmAuthSessions.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [bin/obj/Src/debug/TpmPolicy.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/Tpm2.o] Error 1 make: *** [bin/obj/Src/debug/TpmHelpers.o] Error 1 20 errors generated. make: *** [bin/obj/Src/debug/TpmDevice.o] Error 1 20 errors generated. make: *** [bin/obj/Src/debug/TpmStructure.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/0937c483fa4e518ae2a9be305dbad7e5fcfe3f0f tssmsr/cci.20201117: ERROR: Package '0937c483fa4e518ae2a9be305dbad7e5fcfe3f0f' build failed tssmsr/cci.20201117: WARN: Build folder /Users/jenkins/w/cci_PR-4552@2/.conan/data/tssmsr/cci.20201117/_/_/build/0937c483fa4e518ae2a9be305dbad7e5fcfe3f0f 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