- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: io_search_array giving error as: error #2140: ...
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
тАО09-27-2011 12:13 AM
тАО09-27-2011 12:13 AM
io_search_array giving error as : error #2140: too many arguments in function call
I am trying to use io_search_array to get the token to search for I/O subsystem in my HP-UX server. Using this token I would like to use io_query_batch and other related API's to fetch disk related information. But I am getting "error #2140: too many arguments in function call" error message when I tried to compile the code.
Note: The same io_search_array line is working from a different program on same HP-UX 11.31 box. Not sure why I am getting this error when I try this from a sample code. Could you please help in identifying the problem to fix this issue?
Here is the sample code :
sample1.cpp
#include <string.h>
#include<sys/libIO.h>
int main()
{
int qual=0;
void *ptr_arr[2];
char *key_arr[2];
io_token_t token = NULL;
token = io_search_array( token, S_IOTREE_EXT, qual, key_arr, ptr_arr );
}
- Tags:
- libIO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2011 08:40 AM
тАО09-28-2011 08:40 AM
Re: io_search_array giving error as: error #2140: too many arguments in function call
Compile with these extra options: -E -.i
Take a look at the line in the .i file and see if some evil macro messed up the call or declaration.
- Tags:
- evil macro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2011 10:16 PM
тАО10-10-2011 10:16 PM
Re: io_search_array giving error as: error #2140: too many arguments in function call
Hmm... Tried this but still no luck.
I could not find any special chars or macro messing up function declaration. Any other hints or any other sample codes?
Regards,
Shivaraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2011 01:37 AM
тАО10-11-2011 01:37 AM
Re: io_search_array giving error as: error #2140: too many arguments in function call
>Tried this but still no luck.
Did you look closely at the .i file? ;-)
You can't use <sys/libIO.h> with C++. That header isn't C++ified.
I suppose you could lie and compile with -D__STDC__.