Chinaunix

标题: 急!!xlC 编译提示1501-230,求教各位高~手 [打印本页]

作者: jily_cunix    时间: 2005-05-24 09:24
标题: 急!!xlC 编译提示1501-230,求教各位高~手
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,不知哪里出了问题,请教各位高手




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2