cc編譯器foraix
Ⅰ 如何在AIX系統下編譯c或c++源文件,具體說明一下。謝謝各位高手。
如果你有myprogram.cpp文件,那麼使用xlC myprogram.cpp 就可以編譯了,默認生成輸出文件名為a.out,
如果要指定輸出文件,可以使用xlC myprogram.cpp -o myprogram,這樣就可以生成名字為myprogram的文件
Ⅱ 怎麼確認AIX C/C++ compiler XL C的license是否完成版
使用IBM CICS Transaction Server需要使用AIX XLC C/C++編譯器編譯C語言和C++的應用程序,。AIX上的XLC不是免費的編譯器軟體,需要額外購買license。如果沒有購買license,XLC只能使用60天,過期了就不能編譯。怎麼確定在伺服器上安裝XLC編譯器是完整版還是試用版?
lslpp -l | grep 「vac*」 或者 lslpp -l | grep -i vac
vac.lic 10.1.0.0 COMMITTED XL C for AIX LicenceFiles
vac.licAgreement 10.1.0.0 COMMITTED IBM XL C ElectronicLicense
vacpp.lic 10.1.0.0 COMMITTED IBM XL C/C++ LicenceFiles
vacpp.licAgreement 10.1.0.0 COMMITTED IBM XL C++ ElectronicLicense
查到有以上的fileset就證明你的XLC編譯器為完整版。如果沒有,請先卸載XLC編譯器,再重新安裝完整版的XLC編譯器。
Ⅲ Apache的配置文件語法錯誤,問題所在怎麼修改
解決問題的辦法:
1.先看次文:
Full text of PR number 2312:
Received: (qmail 27406 invoked by uid 2012); 28 May 1998 19:08:53 -0000
Message-Id: <[email protected]>
Date: 28 May 1998 19:08:53 -0000
From: Tim Evans <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: syntax error in distributed httpd.conf file
X-Send-Pr-Version: 3.2
>Number: 2312
>Category: os-aix
>Synopsis: syntax error in distributed httpd.conf file
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: closed
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu May 28 12:10:00 PDT 1998
>Last-Modified: Thu May 27 12:42:51 PDT 1999
>Originator: [email protected]
>Organization:
>Release: 1.3b7
>Environment:
AIX 4.3; AIX cc
>Description:
After compiling and installing 1.3b7 in default location, I changed *only* the port number in
the distributed httpd.conf file. httpd fails to start with this error:
Syntax error on line 40 of /usr/local/apache/conf/access.conf:
Expected </Directory> but saw </Directory>
NOTE: "Expected </Directory> but saw </Directory>"
>How-To-Repeat:
>Fix:
>Audit-Trail:
State-Changed-From-To: open-analyzed
State-Changed-By: coar
State-Changed-When: Sun Sep 27 09:41:57 PDT 1998
State-Changed-Why:
This is a known problem with the AIX C compiler (see also
PRs 2534, 2664, 2853, and 3042). IBM are aware of the
problem. I'm putting this report into 'analyzed' so we
can notify you of the correction if and when we get one.
Category-Changed-From-To: general-os-aix
Category-Changed-By: coar
Category-Changed-When: Sun Sep 27 09:41:57 PDT 1998
State-Changed-From-To: analyzed-closed
State-Changed-By: [email protected]
State-Changed-When: Sun Dec 13 14:54:32 PST 1998
State-Changed-Why:
The AIX compiler problem which gave the error of
"on Expected </Files> but saw </Files>" has been fixed.
+ A set of PTF's which correct the problem are available from:
+ http://service.software.ibm.com/support/rs6000
+ The PTF's are: U462005, U462006, U462007, and U462023 through
+ U462030. The PTF's have been tested and do indeed fix the problem.
Thanks for using Apache
From: [email protected]
To: [email protected]
Cc: [email protected]
Subject: Re: os-aix/2312: syntax error in distributed httpd.conf file
Date: Wed, 16 Dec 1998 14:00:19 -0500
Yes, the listed PTF's are for the xlC 3.6.4 compiler.
Please talk with your IBM Service Rep. to see
if your compiler is effected.
> Synopsis: syntax error in distributed httpd.conf file
>
> State-Changed-From-To: analyzed-closed
> State-Changed-By: [email protected]
> State-Changed-When: Sun Dec 13 14:54:32 PST 1998
> State-Changed-Why:
> The AIX compiler problem which gave the error of
> "on Expected </Files> but saw </Files>" has been fixed.
> + A set of PTF's which correct the problem are available from:
> + http://service.software.ibm.com/support/rs6000
> + The PTF's are: U462005, U462006, U462007, and U462023 through
> + U462030. The PTF's have been tested and do indeed fix the problem.
>
These PTF's appear to be for the old AIX compiler, not the latest one
(i.e. "C for AIX Version 4.3").
Comment-Added-By: [email protected]
Comment-Added-When: Mon Feb 1 07:34:08 PST 1999
Comment-Added:
According to the IBM compiler people:
The AIX 4.3 compiler is old and out of support.
The AIX 3.6.4 C/C++ compiler problem is fixed with the PTF's
listed above
The only forthcoming comiler fix is for the AIX 4.4 C compiler
and this PTF's to fix this will be available in April 99.
Sorry for any confusion that IBM numbering scheme has caused.
Comment-Added-By: [email protected]
Comment-Added-When: Thu May 27 12:42:49 PDT 1999
Comment-Added:
IBM has released a fix their 4.4 C compiler.
The APAR number is IX87837, you can go to:
http://service.software.ibm.com/cgi-bin/support/rs6000.support/downloads
use the AIX Fix Distribution Service, and search on the APAR number above,
it will pull up the updated filesets with the fix.
Evidently this fix has been available for a while, but I just
got wind of the updated APAR. Shane
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <[email protected]> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]
2.針對自己編譯器的版本進行修改,我是在最後一種情況,所以我升級了aix的c 編譯器,升為4.4.0.3.
3.重新編譯安裝apache
4.問題解決了。
Ⅳ unix下C編譯器版本如何查看
常用的編譯器有gcc, clang, c-compiler, xlc(AIX)等。一般他們會綁定到cc(軟連接), 所以你可以查看下cc指向哪個連接,如果遵循GNU語法,那麼看版本就是cc --version. 一個系統可以裝多個版本的多種編譯器,那麼就可以看下$PATH變數中優先哪個生效?當然還有其他編譯器,如intel 廠商的。可以看man XXXX 然後搜 version.
Ⅳ 新手入門:AIX下如何用命令行編譯並執行一個C程序GCC和CC的區別是什麼
謝謝! 明天我去試一下。另外,在AIX下我輸入:gcc -v 想查看GCC版本號,提示GCC不存在,但是輸入:cc -v 則提示IBM XLC的版本信息,不知道這個是什麼原因 ?
Ⅵ AIX 6.1環境安裝的xlc 9.0版本編譯器但是不能編譯,求大神指教越詳細越好~
從你的這個補丁文件名就可以看出,是先用tar歸檔後再壓縮的,需要使用的時候反向操作即可。
uncompress vacpp.90.aix61.oct2007.ptf.tar.Z
tar xvf vacpp.90.aix61.oct2007.ptf.tar
然後在安裝此文件
Ⅶ 有哪位大哥在aix上用過tuxedo啊,最好是用gcc編譯器
一般建議使用tuxedo的buildserver命令編譯生成可執行文件,而不是直接cc/gcc,如果有特殊考慮必須直接使用cc/gcc,需使用-I、-L、-l參數後跟相應選項指明Tuxedo頭文件所在目錄、庫文件所在目錄、庫文件;使用buildserver命令編譯時,如果希望調用gcc而不是預設的cc,可先設置環境變數CC=gcc