We had the same kind of error when we tryed to cross-compile our program
We resolved the error adding "this->" each time the compilator failed.

But, I made a reply to warn you about another thing!
Be careful of the type "char". We spend time to find that the crosscompiler consider the char as unsigned by default on ARM.
(The gcc i386 compiler consider the char as signed).

If you use chars in your program, you can:
- modify your code to replace the "char" by "signed char";
- typedef a type like "s_char" and replace the "char" by "s_char";
- the quickest solution (the one we choosed) is to add the flag "-fsigned-char" to "arm-linux-gcc".

I am trying to port a program from i386 to arm for gumstix. In my makefile i have a CC variable which i turn to g++ for my development machineand arm-linux-g++ for the gumstix. (The make file is rather simple.)

When i set the variable to g++ (The native compiler gcc 3.3.3) itcompiles without any warnings or errors in my labs machine which hasSuse 9.1.

However when i set it to arm-linux-g++ i get specific errors which i
suspect are due to the default configuration (or rather defaultassumptions) of g++.For example, if i have a member variable which i assign to a value in amember function of a class i have to add the this-> operator infront of
it or else it does not recognise it as the member variable of the class(Which is a bit strange because the native g++ has no problem with this).

This is enhanced by another fact. The exact same errors appear when i
try to compile my program in a Fedora C4 system (for the i386 case).

How can i find the default arguments- if any- that are passed to thecompiler that is in the gumstix-buildroot?