- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- not sure ANSI C is installed properly
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
тАО10-11-2004 07:20 AM
тАО10-11-2004 07:20 AM
cc: "frog2.c", line 11: error 1705: Function prototypes are an ANSI feature.
where line 11 is
main(int argc, char *argv[])
i noticed in the forums that the fix was to use the ANSI C compiler ...well i have one
swlist | grep -i ansi
B3900AA_APZ B.10.20.05 HP C/ANSI C Developer's Bundle for HP-UX 10.20 (S800)
so just wondering if i am using it?
which cc
/usr/bin/cc
ll /usr/bin/cc
lr-xr-xr-t 1 root sys 17 Nov 1 1999 /usr/bin/cc -> /opt/ansic/bin/cc
FYI: i have not written C code in over a decade
Solved! Go to Solution.
- Tags:
- K&R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2004 07:39 AM
тАО10-11-2004 07:39 AM
Re: not sure ANSI C is installed properly
I rather suspect that ANSI/C is installed but not yet configured.
Do this:
swlist -l fileset -a state | grep -i "ANSI"
to make sure that "configured" appears beside each component.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2004 08:50 AM
тАО10-11-2004 08:50 AM
Re: not sure ANSI C is installed properly
swlist -l fileset -a state | grep -i "ANSI"
# C-ANSI-C
C-ANSI-C.C configured
C-ANSI-C.C-HELP configured
C-ANSI-C.C-MAN configured
which cc
/usr/bin/cc
type cc
cc is a tracked alias for /usr/bin/cc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2004 09:06 AM
тАО10-11-2004 09:06 AM
Re: not sure ANSI C is installed properly
cc -v frog2.c to display the options and executables. At this point, my best guess is that CCOPTS is set and doing -Ac to put the compiler in "compatible" (meaning very old) mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2004 09:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2004 03:53 AM
тАО10-12-2004 03:53 AM
Re: not sure ANSI C is installed properly
cc -v -ofrog2 frog2.c
cc: CCOPTS is not set.
...
cc -Aa -ofrog2 frog2.c
Worked!!!
FYI: i got "cc -ofrog2 frog2.c" to work without the "-Aa" option by replacing
void main(int argc, char *argv[])
with the following
main(argc,argv)
int argc;
char **argv;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-12-2004 04:58 AM
тАО10-12-2004 04:58 AM