|
boost::math::isnan doesn't compile with QNX 6.6 QCC
|
09/21/2014 5:44 AM
post111798
|
boost::math::isnan doesn't compile with QNX 6.6 QCC
Hi,
I found an issue when cross compiling an application that uses the boost::math::isnan function (and possibly other boost
::math::is* functions).
The QCC compiler threw the following error:
/home/me/depot/test/qnx/boost/math.cpp: In function 'int main()':
/home/me/depot/test/qnx/boost/math/math.cpp:6:21: error: expected unqualified-id before '(' token
cc: /opt/qnx660/host/linux/x86/usr/lib/gcc/arm-unknown-nto-qnx6.6.0eabi/4.7.3/cc1plus error 1
Here is the test program (test_math.cpp):
#include <stdio.h>
#include <boost/math/special_functions/fpclassify.hpp>
int main()
{
if (!boost::math::isnan(5))
{
printf("Is not Nan\n");
}
}
For the build system, I am using cmake, but it can also be reproduced using the following command to compile:
/opt/qnx660/host/linux/x86/usr/bin/QCC -Vgcc_ntoarmv7le -Wl,-lm -I/home/me/depot/boost_1_55_0 test_math.cpp
Compiler: QNX 6.6 QCC for arm
Boost: 1.55
How can we solve this issue?
Thanks,
Anton
|
|
|