Click to See Complete Forum and Search --> : Problem in compilation of cpp file


vaibhavc
August 3rd, 2007, 06:18 AM
Hi,
I am getting following compilation error in c++ file.

"/usr/vacpp//include/xlocinfo.h", line 144.23: 1540-0040 (S) The text "_Ptr" is unexpected. "__xlocale_ptr" may be undeclare
d or ambiguous.

AMC_API_Typedefs.h", line 73.21: 1540-2206 (I) This member does not respect
power alignment mode alignment rule. Please use -qalignrulefor=power=typedefrespectsrule option to get correct alignment beh
aviour.

Can someone tell me why i am getting these errors and how i can rectify them?

hiroki-muhwota
March 12th, 2008, 10:24 AM
Hi vaibhavc

I have same trouble today.
I think this problem use visual age C++ with /usr/include

Try to -I/usr/vacpp/include before you include /usr/include

e.g.

xlC_r -I/usr/include foo.C

to change

xlC_r -I/usr/vacpp/include -I/usr/include foo.C

because
xlocinfo.h include <locale.h>
xlocinfo.h depend /usr/vacpp/include/locale.h and locale.h not compatible under /usr/include