有人可以解释一下 PC-Lint 错误号吗?38 举个例子...
38 Offset of symbol 'Symbol' inconsistent (Location) -- A
member of a class or struct appears in a different
position (offset from the start of the structure) than an
earlier declaration. This could be caused by array
dimensions changing from one module to another.
我不断收到错误,例如...
Offset of symbol 'ClassX::access1' inconsistent (conflicts with line 92, file U:\ABC\ABCApp.h, module U:\ABC\ABCApp.cpp)
其中是在中声明的access1
枚举类型的成员变量。并且该枚举是在不同的头文件中定义的。
包含在.ACCESS
ClassX
ACCESS
access.h
access.h
stdafx.h
typedef enum
{
ACCESS_NONE = 0,
ACCESS_READ = 1
} ACCESS;
不知道这里有什么问题。哪里不一致?