Error #2135: Compilation of class XXXX has no member (HP-UX IA64 ACC)

Source: Internet
Author: User

Error #2135: Compilation of class XXXX has no member:
"Hbstat. cpp", line 180: Error #2135: Class "diameter: sdiameterrootdef" has no
Member "_ MSG"
Pmsgdict = & prootdef-> MSG ;
^
However, the structure of sdiameterrootdef is as follows:
Struct sdiameterrootdef
{
Tuint32 version;
Tuint32 unused;
Sdiameterprotodict proto;
Sdiametervendordict vendor;
Sdiametertypedict type;
Sdiameteravpdict AVP;
Sdiametermsgdict MSG;
Sdiametermsgtempdict temp;
Sdiameterservicegroup service;
};
Obviously, MSG is a member variable, but the compiler prompts that there is no member "_ MSG", which is a bit strange...

By asking experts, we recommend that you use pre-compilation to see what it looks like. Then we bring the-E Option to compile, acc...-e hbstat. cpp
This line is foundCodePmsgdict = & prootdef-> MSG;
Pre-edited into pmsgdict = & prootdef->__ MSG ;//!?
So I suspect there is a macro definition like: # define MSG _ msg
Add the following code to solve the problem:
# Ifdef msg
# UNDEF msg
# Endif

However, you still need to find somewhere similar to # define MSG _ MSG to avoid type issues in the future.

Supplement:

The following definitions are found after verification:

/Usr/include/sys/msg. h

# Ifdef _ include_hpux_source
# Define MSG _ MSG/* keep xopen name-space clean */

The system header file is defined, and conflicts with the system header file memory ....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.