g++ gives compilation error
in the program given below , while i am trying to compile it gives error.
In function `int main()':
error: `struct GSMRegisterSS_RESULT::GSM_seq11' has not been declared
error: `GSM_seqof202' has not been declared
NOTE :
It is auto generated code for .h file so i cant change any thing in the structure or in the union.
#include<iostream>
using namespace std;
typedef struct GSMRegisterSS_RESULT {
union {
struct GSM_seq11 {
struct GSM_seqof202 {
int code;
}*forwardingFeatureList;
}forwardingInfo;
}u;
}GSMRegisterSS_RESULT;
int main()
{
GSMRegisterSS_RESULT ss;
ss.u.forwardingInfo.forwardingFeatureList=new GSMRegisterSS_RESULT::GSM_seq11::GSM_seqof202;
return 0;
}
Last edited by gagan_bhagat; 01-05-2010 at 12:42 AM.
|