- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- ANSI feature support on compiler
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-09-2007 04:27 AM
10-09-2007 04:27 AM
hostname as oracle -> cc hide.c -o hide
cc: "hide.c", line 22: error 1705: Function prototypes are an ANSI feature.
cc: "hide.c", line 25: error 1705: Function prototypes are an ANSI feature.
cc: "hide.c", line 164: error 1705: Function prototypes are an ANSI feature.
#what /usr/bin/cc
/usr/bin/cc:
LINT A.10.32.03 CXREF A.10.32.03
HP92453-01 A.10.32.03 HP C Compiler
/usr/lib/libc: $Revision: 76.3 $
#grep -i Compiler swlist.product.07162007
C-ANSI-C B.10.20.00 HP C/ANSI C Compiler
COBOLCRT B.11.30 COBOL Compiler
any way i can enable the ANSI feature? or any third party compiler which works on 10.20?
Solved! Go to Solution.
- Tags:
- prototype
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 04:36 AM
10-09-2007 04:36 AM
Re: ANSI feature support on compiler
Add the '-A' flag.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 04:38 AM
10-09-2007 04:38 AM
Re: ANSI feature support on compiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 12:27 PM
10-09-2007 12:27 PM
Re: ANSI feature support on compiler
# man cc
might help to determine the ANSI C options: -A or -Ac
try this one:
cat < /tmp/t.c
main()
{
printf("Hello World\n");
}
!
cd /tmp
make t
./t
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2007 04:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 04:41 AM
10-11-2007 04:41 AM
Re: ANSI feature support on compiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2007 10:12 AM
10-11-2007 10:12 AM
Re: ANSI feature support on compiler
This isn't supported. You can't compile on 11.00 and move back to 10.20.
All you needed to do is add -Ae to your makefile, or "export CCOPTS=-Ae" and build.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2007 07:53 AM
10-12-2007 07:53 AM
Re: ANSI feature support on compiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2007 08:43 AM
10-12-2007 08:43 AM
Re: ANSI feature support on compiler
There is a difference between supported and works.
This won't work for C++ because of mangling differences. If you use higher opt levels, you may run into TLS issues.
And libc headers aren't compatible.