Reputation: 173
My problem is following. I'm trying to build a project for mips. And when I download it from it's repository, there is no problem building it, but when I build it when it is a part of a larger project, I receive a folowing error:
error: expected ‘,’ or ‘...’ before numeric constant
I found out that it is a problem because some variable is called mips whereas the same variable is defined as predefined macro in gcc compiler.
#define mips 1
I verified it with:
mipsel-linux-gnu-g++ -dM -E - < /dev/null
So, my question is, does any body know is there a certain compiler flag or whatever, that forces the use of this macro? It is strange that there is no build problem when I download the same code from repository.
Both projects are build with the same toolchain, I already verified that.
Thanks for your help!
Upvotes: 4
Views: 1082
Reputation: 179779
That is to say, with --ansi
you still get __mips__
but not mips
.
Upvotes: 3