Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- Languages and Scripting
- >
- Re: error 1705: Function prototypes are an ANSI fe...
Languages and Scripting
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
Go to solution
Topic Options
- 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
- Email to a Friend
- Report Inappropriate Content
09-15-2003 10:43 AM
09-15-2003 10:43 AM
Following is the Sco Unix version of the command used to create the MicroFocus runtime that is required for the gui version of a software package we are currently running text-based:
cob -xve "" *.c -o my_rts
We need to find out how to do the equivalent operation on your HP system.
When attempting to run it on HP-UX 11.0 we get the following output:
magnal:L1000>:cob -xve "" sockets.c -o my_rts
cob -C nolist -xve sockets.c -o my_rts
(Bundled) cc: "sockets.c", line 55: error 1705: Function prototypes are an
ANSI
feature.
Anyone have any ideas? Thanks.
Richard
cob -xve "" *.c -o my_rts
We need to find out how to do the equivalent operation on your HP system.
When attempting to run it on HP-UX 11.0 we get the following output:
magnal:L1000>:cob -xve "" sockets.c -o my_rts
cob -C nolist -xve sockets.c -o my_rts
(Bundled) cc: "sockets.c", line 55: error 1705: Function prototypes are an
ANSI
feature.
Anyone have any ideas? Thanks.
Richard
rdarling@southwickclothing.com
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-15-2003 10:54 AM
09-15-2003 10:54 AM
Solution
The correct answer to your question isd to purchase ANSI/C or aCC because the bundled c compiler only speaks K&R C and does not understand ANSI C function prototypes. The bundled compiler is really only intended to build kernels.
You could use the free Gnu C compiler available from any of the HP-UX Porting Centre's.
Plan C. Change all the ANSI declarations to K&R:
e.g ANSI
int myfunct(int a, char *b; double c; char d[], float *e)
{
....
....
}
becomes in K&R
int myfunct(a,b,c,d,e)
int a;
char *b,d[];
double c;
float *e;
{
....
....
}
You could use the free Gnu C compiler available from any of the HP-UX Porting Centre's.
Plan C. Change all the ANSI declarations to K&R:
e.g ANSI
int myfunct(int a, char *b; double c; char d[], float *e)
{
....
....
}
becomes in K&R
int myfunct(a,b,c,d,e)
int a;
char *b,d[];
double c;
float *e;
{
....
....
}
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-15-2003 11:34 AM
09-15-2003 11:34 AM
Re: error 1705: Function prototypes are an ANSI feature
Hi Clay,
Our software developer said that it makes sense, and he is going with Plan C:
Change all the ANSI declarations to K&R.
Thanks for the quick response.
Richard
Our software developer said that it makes sense, and he is going with Plan C:
Change all the ANSI declarations to K&R.
Thanks for the quick response.
Richard
rdarling@southwickclothing.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP