Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - x86 target compile error.: (2 Items)
   
x86 target compile error.  
Our code compiles correctly when using an arm target. But when I switch to a x86 target I get the following error. Any 
help would be great . Thanks


qnx640/target/qnx6/usr/include/stdio.h:95: error: expected ';' before '*' token
qnx640/target/qnx6/usr/include/stdio.h:96: error: '_Wchart' does not name a type
cc: qnx640/host/linux/x86/usr/lib/gcc/i386-pc-nto-qnx6.4.0/4.2.4/cc1plus error 1


Failing configuration (x86 target)

qnx640/host/linux/x86/usr/bin/qcc -V4.2.4,gcc_ntox86_acpp-ne -lang-c++  -mtune=i486 -m32 

Working configuration (arm target)

qnx640/host/linux/x86/usr/bin/qcc -V4.2.4,gcc_ntoarmle_acpp-ne -lang-c++  -mtune=arm926ej-s
Re: x86 target compile error.  
This is weird indeed - I guess there is a bug in your code that the ARM compiler somehow tolerates, the x86 one doesn't.


Have you seen this:

http://stackoverflow.com/questions/1761018/does-not-name-a-type-in-c

Maybe it's helpful!

- Malte