- 论坛徽章:
- 0
|
IBM主机新装的编译器,xlC是一个链接文件,指向xlc文件。简单的hello world程序xlC xlc均可编译成a.out 但在其中加入类的声明则xlC xlc均编译失败。\r\n程序例 example.C:\r\n#include < string.h>; \r\n#include < stdio.h>; \r\n\r\nint dwInt;\r\n\r\nstruct y{\r\n int i;\r\n};\r\n\r\nclass x{\r\n int m;\r\n};\r\n\r\nint main(){\r\n //x tmp_class;\r\n\r\n printf(\"hello\\n\" ;\r\n\r\n return 1;\r\n}\r\n\r\n编译:\r\n>;xlC example.C\r\n错误信息:\r\nTOBEY: Incompatible Intermediate Language Level Detected: 250, expected 270\r\nxlC: 1501-230 Internal compiler error; please contact your Service Representative\r\n以xlc -+ -c example.C -o example编译,得到同样的错误结果。\r\n\r\n首次用xlC,不知哪里出了问题,请教各位高手 |
|