Operating System - OpenVMS
1753818 Members
8991 Online
108805 Solutions
New Discussion юеВ

Getting %CC-E-REDEFSTRUCT Error

 
SOLVED
Go to solution
XMAN_1
Advisor

Getting %CC-E-REDEFSTRUCT Error

Hello! Guru's,

Need help over here!! :)

I am getting the following redefine structure error when compiling the source code on OpenVMS 7.2-1 using DEC C 6.0-001 compiler.

---------------------------------------------
typedef struct _ctb {
........^
%CC-E-REDEFSTRUCT, In this declaration, the struct "_ctb" is redefined.
---------------------------------------------

Strange things is when compiling the same source code on VMS 6.2-1H3 using the same DEC C 6.0-001 compiler I am not getting this error.

Many thanks in advance!

Note:
I have already checked and applied the HP provided solution regarding time.h & signal.h and its not working either.

3 REPLIES 3
Arch_Muthiah
Honored Contributor
Solution

Re: Getting %CC-E-REDEFSTRUCT Error

XMAN,

I didn't check it, I would like you to check this header file rpb.h for any declaration about struct ctb.

Though you use same DEC C version, your VMS 7.2-1 may have difft library; your default library may be pointing to this, where the rpb.h may have the duplicate definition of ctb struct.

Check this, if it is, then try comment your ctb struct declaration in the program.


Archunan
Regards
Archie
XMAN_1
Advisor

Re: Getting %CC-E-REDEFSTRUCT Error

Thanks Archunan!

I have found the conflicting structure declaration of "_CTB" in SYS$COMMON:[SYSLIB]SYS$LIB_C.TLB for Console Terminal Block and renamed my _CTB structure decalaration to a different name to avoid conflit.




Steven Schweda
Honored Contributor

Re: Getting %CC-E-REDEFSTRUCT Error

It's often helpful to compile with /LIST
/SHOW = ALL, and then scan the listing file
for the source of the complaint, here,
"_ctb".