Subject: SDL-News: a compile error
From: Yang LIU (lyly97#mails.tsinghua.edu.cn)
Date: Sun Feb 23 2003 - 17:33:02 GMT
Become an SDL Forum Society member <http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From "Yang LIU" <lyly97#mails.tsinghua.edu.cn> to sdlnews -----
hi members:
I just generate C code from my SDL GR with telelogic SDL 4.3
but when I compile this code, it finds error C2020: 'U2' : 'union' member
redefinition.
I post a part of my code,
you can see two members in Union named U2,
Does anyone experience such similar problem?
How to correct this?
Thanks in advance
Best Regards
Yang LIU
/*
* Function for procedure getElem
* ##SDTREF(SDL,C:\mac\station\getelem.sop(GetElem_1a),116(55,10),1)
*/
YPRD_FUNCTION(z_macsorts_1F3V_getelem)
{
YPAD_YSVARP
YGLOBALPRD_YVARP
yVDef_z_macsorts_1F3V_getelem * yPrdVarP;
YPRD_TEMP_VARS
##ifdef XTRACE
SDL_Boolean yDcn_SDL_Boolean;
##endif
union {
struct {
z_macsorts_1I_typesubtype Result1;
z_macsorts_1I_typesubtype Result2;
} U2;
struct {
z_macsorts_0U_octet1string Result1;
} U7;
struct {
z_macsorts_0U_octet1string Result1;
z_macsorts_1F_frame Result2;
} U14;
struct {
z_macsorts_1I_typesubtype Result1;
z_macsorts_1I_typesubtype Result2;
z_macsorts_1I_typesubtype Result3;
z_macsorts_1I_typesubtype Result4;
z_macsorts_1I_typesubtype Result5;
z_macsorts_1I_typesubtype Result6;
z_macsorts_1I_typesubtype Result7;
} U2;
} yUVar;
YPRDNAME_VAR("getElem")
......
--End text from "Yang LIU" <lyly97#mails.tsinghua.edu.cn> to sdlnews ---
For extra SDL Forum Society benefits join at <http://www.sdl-forum.org/Society/members.htm>
This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT