Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Macros in QNX libraries break C++17 GCC headers: (3 Items)
   
Macros in QNX libraries break C++17 GCC headers  
Including certain QNX libraries causes the macro "_C2" to get defined to 1. _C2 is, however, used as a token string in 
the GCC 8.3 C++17 libraries in numerous places.

Going into target/qnx7/usr/include and running "grep "\b_C2\b" -R -I" makes the problem rather obvious.
Re: Macros in QNX libraries break C++17 GCC headers  
As far as I can tell this definition is a left over from a previous math library and can now be removed.

--Elad
Re: Macros in QNX libraries break C++17 GCC headers  
Note, however, that this problem only occurs with the non-default C++ headers. Is there any reason you are not using the
 default ones?

--Elad