Operating System - HP-UX
1856446 Members
2698 Online
104113 Solutions
New Discussion

Re: Problems moving from c89 to cc

 
John Hetherington
New Member

Problems moving from c89 to cc

When I compile C source using cc I get the message "error 1705 - Function prototypes are an ANSI feature". I understand that cc is not an ANSI compiler but I do not have c89 on this new machine. Are there known work arounds or do I need the other compiler? Any information would be useful. Thanks.
1 REPLY 1
Rainer_1
Honored Contributor

Re: Problems moving from c89 to cc

you can get a free ANSI gnu compiler from
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-2.95.2/
http://hpux.cs.utah.edu/hppd/hpux/Gnu/binutils-2.9.1/
After install use /opt/gcc/bin/gcc to compile