- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- core dump using aCC 3.45
Operating System - HP-UX
1752754
Members
5290
Online
108789
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
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
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
10-28-2003 02:40 AM
10-28-2003 02:40 AM
core dump using aCC 3.45
Hi,
I try to compile the following simplified example using aCC 3.45:
// begin example
#include
namespace CARMA {
typedef string ResultSet;
}
typedef string tPaCreditLimitKey;
class cPaCreditLimit
{
public:
cPaCreditLimit();
public:
virtual ~cPaCreditLimit()
{};
public:
tPaCreditLimitKey read1(CARMA::ResultSet& rdr);
tPaCreditLimitKey read2(CARMA::ResultSet& rdr);
};
#if defined R1
tPaCreditLimitKey cPaCreditLimit::read1(CARMA::Resultset& rdr)
{
return string("A");
}
#endif
#if defined R2
tPaCreditLimitKey cPaCreditLimit::read2(ResultSet& rdr)
{
return string("A");
}
#endif
// end example
Within implementation of read1 there is a typo for ResultSet, within read2 namespace CARMA is missing.
As well
aCC test.cpp -DR1
as
aCC test.cpp -DR2
result in a core dump of the compiler instead of any error message giving a hint to the real error.
aCC test.cpp
has no problem.
Has anyone any idea whether there is a compile flag or compiler patch or whatever to solve this problem?
Help would be greatly appreciated.
Ludger.
I try to compile the following simplified example using aCC 3.45:
// begin example
#include
namespace CARMA {
typedef string ResultSet;
}
typedef string tPaCreditLimitKey;
class cPaCreditLimit
{
public:
cPaCreditLimit();
public:
virtual ~cPaCreditLimit()
{};
public:
tPaCreditLimitKey read1(CARMA::ResultSet& rdr);
tPaCreditLimitKey read2(CARMA::ResultSet& rdr);
};
#if defined R1
tPaCreditLimitKey cPaCreditLimit::read1(CARMA::Resultset& rdr)
{
return string("A");
}
#endif
#if defined R2
tPaCreditLimitKey cPaCreditLimit::read2(ResultSet& rdr)
{
return string("A");
}
#endif
// end example
Within implementation of read1 there is a typo for ResultSet, within read2 namespace CARMA is missing.
As well
aCC test.cpp -DR1
as
aCC test.cpp -DR2
result in a core dump of the compiler instead of any error message giving a hint to the real error.
aCC test.cpp
has no problem.
Has anyone any idea whether there is a compile flag or compiler patch or whatever to solve this problem?
Help would be greatly appreciated.
Ludger.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2003 02:50 AM
10-28-2003 02:50 AM
Re: core dump using aCC 3.45
IMHO, because -D<...> goes for #define<...>
and not for #if defined (which I don't know if supported at all by hp prepoccessor - use #ifdef instead).
and not for #if defined (which I don't know if supported at all by hp prepoccessor - use #ifdef instead).
So computers don't think yet. At least not chess computers. - Seymour Cray
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