I am having difficulty in getting Eigen 3.3.7 to compile using QNX 6.5.0 or 6.6.0. When I attempt to compile the simple first program example, from the Eigen getting started page.
#include <iostream>
#include <Eigen/Dense>
using Eigen::MatrixXd;
int main()
{
MatrixXd m(2,2);
m(0,0) = 3;
m(1,0) = 2.5;
m(0,1) = -1;
m(1,1) = m(1,0) + m(0,1);
std::cout << m << std::endl;
}
Compiling with:
qcc -I. test_eigen.cpp
I get 18 errors all similar too:
In file included from ./Eigen/Core:411,
from ./Eigen/Dense:1,
from test_eigen.cpp:14:
./Eigen/src/Core/arch/CUDA/Half.h: In function 'Eigen::half Eigen::half_impl::exp(const Eigen::half&)':
./Eigen/src/Core/arch/CUDA/Half.h:454: error: '::expf' has not been declared
While I can fix these errors by adding 'std' before each missing function, this suggests there is a bigger problem that I need to fix. I have a feeling there are some clashing namespaces or preprocessor definitions. Any help would be gratefully received.