- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- error #2338: more than one instance of overloaded ...
Operating System - HP-UX
1821868
Members
3386
Online
109638
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
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
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
- Report Inappropriate Content
тАО04-10-2009 03:20 AM
тАО04-10-2009 03:20 AM
Hi People,
//valid.cxx file
#if defined(VPP_MSVC20) || defined(__linux)
#ifdef VERSANT_ANSI
#include
#include
using namespace std;
#else
#include
#include
#endif /* VERSANT_ANSI */
#else
typedef void SIG_FUNC(int);
extern "C" {
extern void exit(int i);
extern void _exit(int);
extern void _mcleanup();
extern void _cleanup();
extern SIG_FUNC* signal(int,SIG_FUNC*);
extern void __dtors();
extern int getpid();
};
#endif
compiling the above code in HP-UX ITANIUM (with aCC) I am getting this error
"valid.cxx", line 103: error #2338: more than one instance of overloaded function "signal" has "C" linkage
extern SIG_FUNC* signal(int, SIG_FUNC*);
Below is the logs of compiler:
aCC -c -D__OFPROTO__ -mt -g0 +DD64 +z -DVERSANT_ANSI -I/vobs//cxx/qa/cih/class/vnih/ -I/disk/ggawali/hp11.23aCCA.06.15_64bit-dbg/private_rep/cxx/8.0.0.0/HP-U
X_64bit/dbg//sdk/include -I/disk/ggawali/hp11.23aCCA.06.15_64bit-dbg/versant_root/sdk/include -I/vobs//kernel/inc -I/vobs//../header_files/sdk/include -I/vob
s//../header_files/sm/h -I/vobs//../header_files/om/h valid.cxx -o /disk/ggawali/hp11.23aCCA.06.15_64bit-dbg/versant_root/build/class_cont_valid/_dbg/valid.o
"/disk/ggawali/hp11.23aCCA.06.15_64bit-dbg/private_rep/cxx/8.0.0.0/HP-UX_64bit/dbg//sdk/include/cxxcls/vsession.h"
I hope someone can help me to resolve this error.
Best regards!
//valid.cxx file
#if defined(VPP_MSVC20) || defined(__linux)
#ifdef VERSANT_ANSI
#include
#include
using namespace std;
#else
#include
#include
#endif /* VERSANT_ANSI */
#else
typedef void SIG_FUNC(int);
extern "C" {
extern void exit(int i);
extern void _exit(int);
extern void _mcleanup();
extern void _cleanup();
extern SIG_FUNC* signal(int,SIG_FUNC*);
extern void __dtors();
extern int getpid();
};
#endif
compiling the above code in HP-UX ITANIUM (with aCC) I am getting this error
"valid.cxx", line 103: error #2338: more than one instance of overloaded function "signal" has "C" linkage
extern SIG_FUNC* signal(int, SIG_FUNC*);
Below is the logs of compiler:
aCC -c -D__OFPROTO__ -mt -g0 +DD64 +z -DVERSANT_ANSI -I/vobs//cxx/qa/cih/class/vnih/ -I/disk/ggawali/hp11.23aCCA.06.15_64bit-dbg/private_rep/cxx/8.0.0.0/HP-U
X_64bit/dbg//sdk/include -I/disk/ggawali/hp11.23aCCA.06.15_64bit-dbg/versant_root/sdk/include -I/vobs//kernel/inc -I/vobs//../header_files/sdk/include -I/vob
s//../header_files/sm/h -I/vobs//../header_files/om/h valid.cxx -o /disk/ggawali/hp11.23aCCA.06.15_64bit-dbg/versant_root/build/class_cont_valid/_dbg/valid.o
"/disk/ggawali/hp11.23aCCA.06.15_64bit-dbg/private_rep/cxx/8.0.0.0/HP-UX_64bit/dbg//sdk/include/cxxcls/vsession.h"
I hope someone can help me to resolve this error.
Best regards!
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2009 12:44 PM
тАО04-10-2009 12:44 PM
Solution
It is illegal for you to (incorrectly) redeclare the Standard C functions. Remove these:
extern void exit(int i);
extern void _exit(int);
extern int getpid();
extern SIG_FUNC* signal(int,SIG_FUNC*);
Removing your extra signal overload may require you to use a hammer (cast) on your signal handler function for your calls to signal(2).
extern void exit(int i);
extern void _exit(int);
extern int getpid();
extern SIG_FUNC* signal(int,SIG_FUNC*);
Removing your extra signal overload may require you to use a hammer (cast) on your signal handler function for your calls to signal(2).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2009 08:56 PM
тАО04-14-2009 08:56 PM
Re: error #2338: more than one instance of overloaded function "signal" has "C" linkage
It works
thanks...
thanks...
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.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP