- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- We have ANSI c but where to invoke cc
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
Forums
Discussions
Discussions
Discussions
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
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
10-07-2009 04:28 AM
10-07-2009 04:28 AM
I need to compile some c sources,
it was done there before years ago by
my predeccor.
When I compile it complains :
line 118: error 1705: Function prototypes are an ANSI feature.
The thing is I am certain we purchased a license and swlist confirms we have ANSI c
(not just the Bundled version)
[root@devor:]/root/kitchen<>>> swlist -l product | grep ANSI
C-ANSI-C B.10.20.00 HP C/ANSI C Compiler
[root@devor:]/root/kitchen<>>>
Is there some specific options I have to pass in order to invoke the ANSI part of cc ?
It has been a long time, or I am just fading older :)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2009 04:40 AM
10-07-2009 04:40 AM
Re: We have ANSI c but where to invoke cc
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2009 04:43 AM
10-07-2009 04:43 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2009 05:53 AM
10-07-2009 05:53 AM
Re: We have ANSI c but where to invoke cc
We have /usr/bin/cc linked to ansi c
[root@devor:]/root/kitchen<>>> ls -l /usr/ccs/bin/cc
-r-xr-xr-x 1 bin bin 172032 Jun 10 1996 /usr/ccs/bin/cc*
[root@devor:]/root/kitchen<>>> ls -altr /opt/ansic/bin/cc
-r-xr-xr-x 1 bin bin 249856 Jun 5 1996 /opt/ansic/bin/cc*
[root@devor:]/root/kitchen<>>> ^B
[root@devor:]/root/kitchen<>>> ls -altr /usr/bin/cc
lrwxrwxrwt 1 root sys 17 Aug 29 1999 /usr/bin/cc@ -> /opt/ansic/bin/cc
[root@devor:]/root/kitchen<>>>
After some playing with the cc options
it appears that I needed to use this
/opt/ansic/bin/cc -Ae -w source.c -o prog
That compiled and worked !!
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2009 06:13 AM
10-07-2009 06:13 AM
Re: We have ANSI c but where to invoke cc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2009 06:20 AM
10-07-2009 06:20 AM
Re: We have ANSI c but where to invoke cc
So why were you getting the bundled compiler
from "cc"?
> Type "which cc" [...]
Still a good idea. Unless you _really_ want
"cc" to give you the (lame) bundled compiler,
it would seem that adjusting your PATH so
that "cc" gets you the (expensive)
"purchased" compiler would be a wise move.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2009 11:03 PM
10-07-2009 11:03 PM
Re: We have ANSI c but where to invoke cc
Right. If you just take your PATH from /etc/PATH, there may have been problems that long ago such that /usr/ccs/bin may be first?
My 11.11 one is awfully close to not working:
/usr/bin:/opt/ansic/bin:/usr/ccs/bin:...