- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Compile with gcc using ndbm.h - too many argum...
Operating System - HP-UX
1754401
Members
3468
Online
108813
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
- Report Inappropriate Content
тАО08-15-2002 02:34 AM
тАО08-15-2002 02:34 AM
Compile with gcc using ndbm.h - too many arguments
I want to compile a c++ program that need to use the ndbm library. However, when I compile it with:
# g++ -g -c myprog.cpp
then it shows error:
/usr/local/include/ndbm.h:47: too many arguments to function 'DBM* dbm_open()'
myprog.cpp:99: at this point in file
/usr/local/include/ndbm.h:59: too many arguments to function 'datum dbm_firstkey()'
...
it prompts me error on every dbm_xxx function calls. All saying "too many arguments".
I could successfully compile on my linux box. But can't compile on this HP-UX 11i box.
Any information is welcome.
Thanks!
Anderw Lee
# g++ -g -c myprog.cpp
then it shows error:
/usr/local/include/ndbm.h:47: too many arguments to function 'DBM* dbm_open()'
myprog.cpp:99: at this point in file
/usr/local/include/ndbm.h:59: too many arguments to function 'datum dbm_firstkey()'
...
it prompts me error on every dbm_xxx function calls. All saying "too many arguments".
I could successfully compile on my linux box. But can't compile on this HP-UX 11i box.
Any information is welcome.
Thanks!
Anderw Lee
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-15-2002 02:37 AM
тАО08-15-2002 02:37 AM
Re: Compile with gcc using ndbm.h - too many arguments
more info:
I'd checked the number of argument in my program should be correct.
I'd checked the number of argument in my program should be correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2002 01:34 AM
тАО08-19-2002 01:34 AM
Re: Compile with gcc using ndbm.h - too many arguments
Can you give the output of "gcc -v".
Hartmut
Hartmut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 05:26 PM
тАО08-21-2002 05:26 PM
Re: Compile with gcc using ndbm.h - too many arguments
Thanks for your reply.
The problem is fixed now.
I found that when I install gdbm library, it will overwritten the ndbm with a different definition. Therefore the compiler wrongly located the ndbm.h to the gdbm's. I'd recovered the original ndbm.h and it can be compiled now.
Thanks again!
Andrew
The problem is fixed now.
I found that when I install gdbm library, it will overwritten the ndbm with a different definition. Therefore the compiler wrongly located the ndbm.h to the gdbm's. I'd recovered the original ndbm.h and it can be compiled now.
Thanks again!
Andrew
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP