- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Inconsistent Parameter List : C Program
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
тАО06-12-2002 12:23 AM
тАО06-12-2002 12:23 AM
Inconsistent Parameter List : C Program
What does the error : 'Inconsistent Parameter List' mean?
We are compiling C programs on HP-UX 11.0 using HP-UX provided C compiler.
Please help.
Thanks in advance.
Soumen Ghosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 12:34 AM
тАО06-12-2002 12:34 AM
Re: Inconsistent Parameter List : C Program
What error number are you getting with this message? Are you able to post a code snippet of the relevant function?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 12:43 AM
тАО06-12-2002 12:43 AM
Re: Inconsistent Parameter List : C Program
HP's compiler doesn't like the `unsigned char' parameters.
This is a pedanticism of the HP compiler; it considers
the prototype to have ANSI argument conventions (char and unsigned char
really are only 8 bits) but it considers the definition to have K&R argument
conventions (char and unsigned char are implicitly promoted to int).
Most compilers recognize this case and accept it as a K&R->ANSI transition
tool, but the HP/UX compiler insists that the two prototypes are not the
same and rejects it.
Solutions:
- widen the chars to ints
- move to ANSI prototypes
- disable PARAMS() on that host until ANSIfication proceeds
Regards,
Ceesjan
Thanks to Todd Whitesel for his tribute in http://sources.redhat.com/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 12:58 AM
тАО06-12-2002 12:58 AM
Re: Inconsistent Parameter List : C Program
This is like :
void itoa ( long, char* );
Error No. is 1711
Any idea is appreciated.
Soumen Ghosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2002 02:50 AM
тАО06-13-2002 02:50 AM
Re: Inconsistent Parameter List : C Program
Also, try adding the variable names to the type designators.
Also, maybe you have itoa() declared / defined somewhere else in your source code? This is a common function name with implementations available in various C runtime libraries, maybe the compiler is confusing your definition with another one it gets from another header file.