1 | initial version |
Just out of curiosity, what type of system are you using? Because this:
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 4.8.5
Indicates that your C and C++ compiler are quite old. I believe that v4.8 was the first G++ to support C++11. When I try your input and cmake files as posted above on Ubuntu 18.04, it builds and links without any issue. But your C++ compiler is v4.8.5, while mine says:
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
I also find it suspicious that your C and C++ compilers are not the same version number, but I'm only familiar with Ubuntu, where gcc and g++ are typically kept in sync.
Sorry, not much of an answer, other than check your compiler version.