- 论坛徽章:
- 0
|
我有几个文件(c和cpp都有),在linux(Red Hat Linux release 7.1 (Seawolf))下用g++能够编译通过,放到AIX下,用xlC编译出错,主要是c文件:
凡是中文的地方会报:
"xxx.c", line 855.73: 1506-191 (E) The character \xe4 is not a valid C source character.
另外还有:
"xxx.c", line 36.3: 1506-191 (E) The character # is not a valid C source character.
"xxx.c", line 347.73: 1506-209 (S) Character constants must end before the end of a line.
"xxx.c", line 347.61: 1506-076 (W) Character constant 'm trying to' has more than one character. No more than rightmost 4 characters are used.
"xxx.c", line 647.11: 1506-076 (W) Character constant 'll have more allocated than we' has more than one character. No more than rightmost 4 characters are used.
之类的错误,是何原因?文件编码还是编译器问题? |
|