Home > Back-end >  Error # 156: expression must have struct or union type
Error # 156: expression must have struct or union type

Time:04-03

Specific code is as follows:
If (gUlharqUeInfo [r]. Mr UeNo tempULBwpId!=0 XFF) {
GUlharqUeInfo [r]. Mr UeNo activeBWPId=gUlharqUeInfo [r]. Mr UeNo tempULBwpId;
}
It says an error if this line has the error # 156: expression must have struct or union type.
But I don't know how to return a responsibility, tempULBwpId is already defined in the structure, why would an error?

CodePudding user response:

Error of the mean gUlharqUeInfo [Mr UeNo] is not a structure, you have a look at gUlharqUeInfo type

CodePudding user response:

How to define gUlharqUeInfo? This part of the need to stick out

Error # 156: expression must have struct or union type.

For programmers, compiler warnings and errors can read ~

CodePudding user response:

IDE, a point don't understand the symbol on the right mouse button and choose to define,

CodePudding user response:

reference 1st floor flying_music response:
error mean gUlharqUeInfo [Mr UeNo] is not a structure, you have a look at gUlharqUeInfo type

Thank you very much, find the problem, refresh after the definition, thank you very much

CodePudding user response:

reference 2 building self-confidence boy reply:
gUlharqUeInfo is how to define? This part of the need to stick out

Error # 156: expression must have struct or union type.

For programmers, compiler warnings and errors can read ~

Thank you very much, find the problem, refresh after the definition, thank you very much
  • Related