timallen
Well Known Member
Recently I did a full package build and got the following error in buildlog.txt:
C:\B7\DV7333\include\b9800094.h(48) : error C2371: 'FLLPATHCD' : redefinition; different basic types
C:\B7\DV7333\include\b9800092.h(86) : see declaration of 'FLLPATHCD'
C:\B7\DV7333\include\b9800094.h(48) : error C2371: 'LPFLLPATHCD' : redefinition; different basic types
C:\B7\DV7333\include\b9800092.h(86) : see declaration of 'LPFLLPATHCD'
Creating library \\BCNAAPLI09\B7333\PY7333\package\PY7333OP\lib32\CINSTALL.lib and object \\BCNAAPLI09\B7333\PY7333\package\PY7333OP\lib32\CINSTALL.exp
I looked at b9800092.h and b9800094.h and saw that there were duplicate definitions for the following:
typedef struct
{
char lmll[11]; /* 0 to 10 */
char lmpathcd[11]; /* 22 to 32 */
} FLLPATHCD, FAR *LPFLLPATHCD;
I modified both files like this:
#ifndef TIMALLEN_FIX_FLLPATHCD_
#define TIMALLEN_FIX_FLLPATHCD_
typedef struct
{
char lmll[11]; /* 0 to 10 */
char lmpathcd[11]; /* 22 to 32 */
} FLLPATHCD, FAR *LPFLLPATHCD;
#endif
and then did the build. The build worked.
I assume that this would not be considered the JDE way to resolve this problem, but it worked. How should I have handled this? Keep in mind that for reasons entirely out of my control, the JDE Response Line is not available to me.
Cheers.
C:\B7\DV7333\include\b9800094.h(48) : error C2371: 'FLLPATHCD' : redefinition; different basic types
C:\B7\DV7333\include\b9800092.h(86) : see declaration of 'FLLPATHCD'
C:\B7\DV7333\include\b9800094.h(48) : error C2371: 'LPFLLPATHCD' : redefinition; different basic types
C:\B7\DV7333\include\b9800092.h(86) : see declaration of 'LPFLLPATHCD'
Creating library \\BCNAAPLI09\B7333\PY7333\package\PY7333OP\lib32\CINSTALL.lib and object \\BCNAAPLI09\B7333\PY7333\package\PY7333OP\lib32\CINSTALL.exp
I looked at b9800092.h and b9800094.h and saw that there were duplicate definitions for the following:
typedef struct
{
char lmll[11]; /* 0 to 10 */
char lmpathcd[11]; /* 22 to 32 */
} FLLPATHCD, FAR *LPFLLPATHCD;
I modified both files like this:
#ifndef TIMALLEN_FIX_FLLPATHCD_
#define TIMALLEN_FIX_FLLPATHCD_
typedef struct
{
char lmll[11]; /* 0 to 10 */
char lmpathcd[11]; /* 22 to 32 */
} FLLPATHCD, FAR *LPFLLPATHCD;
#endif
and then did the build. The build worked.
I assume that this would not be considered the JDE way to resolve this problem, but it worked. How should I have handled this? Keep in mind that for reasons entirely out of my control, the JDE Response Line is not available to me.
Cheers.