- 論壇徽章:
- 0
|
IBM主機(jī)新裝的編譯器,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編譯,得到同樣的錯誤結(jié)果。\r\n\r\n首次用xlC,不知哪里出了問題,請教各位高手 |
|