Name collisions in several files when cross-compiling with CodeSourcery (Feature #221)
The "ctype.h" that comes with the cross-compiler defines some macros that collide with your naming convention of local "_[A-Z]"-variables. The ctype.h shows the following defines:
#define _U 01
#define _L 02
#define _N 04
#define _S 010
#define _P 020
#define _C 040
#define _X 0100
#define _B 0200
This results in compiling errors when trying to compile OpenCV2.0 with the cross-compiler. The simplest solution to this problem, and therefore a possible patch is to rename all "_[A-Z]"-variables in the above mentioned files.
I believe that defines that start with a single underscore '_' are reserved for the c-runtime, etc ( like _errno in a single threaded lib ) and defines that start with a double underscore '+' are reserved for the compiler -- or vis-versa.
An example below is from MS VS2008 -- stdlib.h file
_CRTIMP extern int +argc; /* count of cmd line args */
There are other possible options like converting them to C++ const vars that are in a namespace.