HLS i++ Compiling Project With GTest
Hello, I am trying to compile a project written in System C that links against GTest.
I would like to know how feasible this is, as I have put a decent amount of effort into making i++ play nice with google test.
The machine I am using has the following qualifications:
CentOS (Red Hat) Linux release 7.5.1804
Linux Kernel : 3.10.0-862.14.4.el7.x86_64
Quartus Pro 18.1
I have projects executing successfully using i++ or gtest individually, but when I try to use both in the same project, I run into the following errors:
$make
[ 25%] Building CXX object CMakeFiles/myTest.dir/src/main.cpp.o
In file included from /home/alex/projects/CMakeProjects/tests/CMakeI++GTest/src/main.cpp:3:
In file included from /usr/include/gtest/gtest.h:57:
In file included from /usr/include/gtest/internal/gtest-internal.h:40:
In file included from /usr/include/gtest/internal/gtest-port.h:196:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/iostream:38:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ostream:37:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ios:41:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/bits/ios_base.h:38:
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ext/atomicity.h:48:45: error:
use of undeclared identifier '__ATOMIC_ACQ_REL'
{ return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
^
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ext/atomicity.h:52:38: error:
use of undeclared identifier '__ATOMIC_ACQ_REL'
{ __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
^
2 errors generated.
HLS x86-64 compile FAILED.
make: *** [all] Error 2
I have followed the directions of the quick start guide to set up the HLS Compiler. As in:
Any assistance would be appreciated.
Best Regards, Alex