- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to verify if ANSI C is installed
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 05:40 PM
тАО07-02-2007 05:40 PM
how to verify if ANSI C is installed
We have a HP UX machine on which ANSI C is installed(i believe!).
How can i confirm if ANSI C is installed?
please let me know if there is any command available to check this.
If i do :
what /usr/ccs/bin/cc
/usr/ccs/bin/cc:
HP92453-01 A.11.01.21 HP C (Bundled) Compiler
$ Sep 8 2000 23:13:51 $
Now if i do :
/usr/ccs/bin ] aCC --version
aCC: HP ANSI C++ B3910B A.03.25
How can i find out about ANSI C,
BR
bravisurya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 05:44 PM
тАО07-02-2007 05:44 PM
Re: how to verify if ANSI C is installed
can you try to run the following command:
swlist -l product |grep "ANSI C compiler"
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 05:50 PM
тАО07-02-2007 05:50 PM
Re: how to verify if ANSI C is installed
/usr/bin/cc was a mere symlink to /opt/ansic/bin/cc
But of course the proper verification is via swlist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2007 07:21 PM
тАО07-02-2007 07:21 PM
Re: how to verify if ANSI C is installed
x1:/tmp 132 > echo "int main (int argc, char *argv[]) { return (0); }" >xx.c
x1:/tmp 133 > cc -c -Ae xx.c
x1:/tmp 134 > cc_bundled -c -Ae xx.c
(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler, ignored.
x1:/tmp 135 >
So, if -Ae doesn't complain, you have the ANSI version.
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 01:39 AM
тАО07-03-2007 01:39 AM
Re: how to verify if ANSI C is installed
On 11.31 IPF and the next 11.23 version, that link will be to /opt/aCC/bin/cc. So the correct check is to see that it isn't to /usr/ccs/bin/cc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 01:49 AM
тАО07-03-2007 01:49 AM
Re: how to verify if ANSI C is installed
You don't even need a temp program.
Both compilers support a --version.
For example:
$ cc --version
cc: HP C/aC++ B3910B A.06.14 [Feb 22 2007]
$ /usr/ccs/bin/cc --version
(Bundled) cc: HP C/aC++ B3910B A.06.12 [Oct 11 2006]
For added info, toss in the -Ae
$ cc -Ae --version
cc: HP C/aC++ B3910B A.06.14 [Feb 22 2007]
$ /usr/ccs/bin/cc -Ae --version
(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler, ignored.
(Bundled) cc: HP C/aC++ B3910B A.06.12 [Oct 11 2006]
Hope this helps some,
Hein van den Heuvel (at gmail dot com)
HvdH Performance Consulting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 02:22 AM
тАО07-03-2007 02:22 AM
Re: how to verify if ANSI C is installed
Both compilers support a --version.
Unfortunately the PA compiler must have a source file before the -V option works.
But you can use what(1) on them.
(Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler, ignored.
Note: K&R is not supported on IPF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2007 02:42 AM
тАО07-03-2007 02:42 AM
Re: how to verify if ANSI C is installed
Hein.