$ i++ -I /usr/include/c++/4.4.7 -march="MAX 10" calibration_hls.c In file included from calibration_hls.c:12: In file included from ./calibration_hls.h:14: In file included from /soft/quartus_prime-17.1.0/hls/include/HLS/hls.h:11: In file included from /soft/quartus_prime-17.1.0/hls/include/HLS/hls_internal.h:5: In file included from /usr/include/c++/4.4.7/queue:60: In file included from /usr/include/c++/4.4.7/deque:60: In file included from /usr/include/c++/4.4.7/bits/stl_algobase.h:61: /usr/include/c++/4.4.7/cstddef:48:1: error: C++ requires a type specifier for all declarations _GLIBCXX_BEGIN_NAMESPACE(std) ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/4.4.7/cstddef:48:26: error: unexpected namespace name 'std': expected expression _GLIBCXX_BEGIN_NAMESPACE(std) ^ /usr/include/c++/4.4.7/cstddef:48:30: error: expected ';' after top level declarator _GLIBCXX_BEGIN_NAMESPACE(std) ^ ; /usr/include/c++/4.4.7/cstddef:53:1: error: unknown type name '_GLIBCXX_END_NAMESPACE' _GLIBCXX_END_NAMESPACE ^ In file included from calibration_hls.c:12: In file included from ./calibration_hls.h:14: In file included from /soft/quartus_prime-17.1.0/hls/include/HLS/hls.h:11: In file included from /soft/quartus_prime-17.1.0/hls/include/HLS/hls_internal.h:5: In file included from /usr/include/c++/4.4.7/queue:60: In file included from /usr/include/c++/4.4.7/deque:60: In file included from /usr/include/c++/4.4.7/bits/stl_algobase.h:62: /usr/include/c++/4.4.7/bits/functexcept.h:39:26: error: unexpected namespace name 'std': expected expression _GLIBCXX_BEGIN_NAMESPACE(std) ^ /usr/include/c++/4.4.7/bits/functexcept.h:39:30: error: expected ';' after top level declarator _GLIBCXX_BEGIN_NAMESPACE(std) ^ ; /usr/include/c++/4.4.7/bits/functexcept.h:91:1: error: unknown type name '_GLIBCXX_END_NAMESPACE' _GLIBCXX_END_NAMESPACE ^ In file included from calibration_hls.c:12: In file included from ./calibration_hls.h:14: In file included from /soft/quartus_prime-17.1.0/hls/include/HLS/hls.h:11: In file included from /soft/quartus_prime-17.1.0/hls/include/HLS/hls_internal.h:5: In file included from /usr/include/c++/4.4.7/queue:60: In file included from /usr/include/c++/4.4.7/deque:60: In file included from /usr/include/c++/4.4.7/bits/stl_algobase.h:63: /usr/include/c++/4.4.7/bits/cpp_type_traits.h:68:26: error: use of undeclared identifier '__gnu_cxx' _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) ^ /usr/include/c++/4.4.7/bits/cpp_type_traits.h:68:36: error: expected ';' after top level declarator _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) ^ ; /usr/include/c++/4.4.7/bits/cpp_type_traits.h:73:1: error: unknown type name '_GLIBCXX_END_NAMESPACE' _GLIBCXX_END_NAMESPACE ^ /usr/include/c++/4.4.7/bits/cpp_type_traits.h:75:26: error: unexpected namespace name 'std': expected expression _GLIBCXX_BEGIN_NAMESPACE(std) ^ /usr/include/c++/4.4.7/bits/cpp_type_traits.h:75:30: error: expected ';' after top level declarator _GLIBCXX_BEGIN_NAMESPACE(std) ^ ; /usr/include/c++/4.4.7/bits/cpp_type_traits.h:309:34: error: use of undeclared identifier '__gnu_cxx' struct __is_normal_iterator< __gnu_cxx::__normal_iterator<_Iterator, ^ /usr/include/c++/4.4.7/bits/cpp_type_traits.h:309:63: error: '_Iterator' does not refer to a value struct __is_normal_iterator< __gnu_cxx::__normal_iterator<_Iterator, ^ /usr/include/c++/4.4.7/bits/cpp_type_traits.h:308:21: note: declared here template ^ /usr/include/c++/4.4.7/bits/cpp_type_traits.h:416:1: error: unknown type name '_GLIBCXX_END_NAMESPACE' _GLIBCXX_END_NAMESPACE ^ In file included from calibration_hls.c:12: In file included from ./calibration_hls.h:14: In file included from /soft/quartus_prime-17.1.0/hls/include/HLS/hls.h:11: In file included from /soft/quartus_prime-17.1.0/hls/include/HLS/hls_internal.h:5: In file included from /usr/include/c++/4.4.7/queue:60: In file included from /usr/include/c++/4.4.7/deque:60: In file included from /usr/include/c++/4.4.7/bits/stl_algobase.h:64: /usr/include/c++/4.4.7/ext/type_traits.h:36:26: error: use of undeclared identifier '__gnu_cxx' _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) ^ /usr/include/c++/4.4.7/ext/type_traits.h:36:36: error: expected ';' after top level declarator _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) ^ ; /usr/include/c++/4.4.7/ext/type_traits.h:44:12: error: explicit specialization of non-template struct '__enable_if' struct __enable_if ^ ~~~~~~~~~~~ /usr/include/c++/4.4.7/ext/type_traits.h:63:32: error: no member named '__is_integer' in namespace 'std' typedef __enable_if::__value, _Tp> __if_type; ~~~~~^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. HLS Testbench parse FAILED.