当前位置: 代码迷 >> AIX >> lslpp显示有xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor解决方案
  详细解决方案

lslpp显示有xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor解决方案

热度:2914   发布时间:2013-02-26 00:00:00.0
lslpp显示有xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
这里应该是安装了xlC编译器吧,可是我应该怎么使用呢?
我用xlC, xlc, xlC.cpp都试过了,命令行找不到这个命令。
我现在就想编译一下我的c程序而已

------解决方案--------------------------------------------------------
直接cc your.c 呢?
------解决方案--------------------------------------------------------
直接使用/usr/vac/bin/xlC 或/usr/vacpp/bin/xlC 试试?或者自己加路径或软连接。

The compiler drivers are not automatically installed in /usr/bin/. To invoke the compiler without having to specify the full path, do one of the following:

Either

Create symbolic links for the specific drivers from /usr/vac/bin/ and /usr/vacpp/bin/ to /usr/bin/.
Example:

ln -s /usr/vacpp/bin/xlc /usr/bin/xlc
or

Add /usr/vac/bin/ and /usr/vacpp/bin/ to your PATH environment variable.
Example:

PATH=$PATH:/usr/vacpp/bin/
export PATH

可以参考手册:
http://publib.boulder.ibm.com/infocenter/lnxpcomp/v111v131/topic/com.ibm.xlcpp111.linux.doc/install/setshortinvoc

或到这儿(IBM 编译器中国开发团队的developerworks群组)提问:

https://www.ibm.com/developerworks/mydeveloperworks/groups/service/forum/topics?communityUuid=12bb75c9-dfec-42f5-8b55-b669cc56ad76

------解决方案--------------------------------------------------------
直接cc your.c 呢
  相关解决方案