2016-04-29 14 views
0

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. 

私はaccess1ClassXで宣言された型の列挙型ACCESSのメンバ変数である

Offset of symbol 'ClassX::access1' inconsistent (conflicts with line 92, file U:\ABC\ABCApp.h, module U:\ABC\ABCApp.cpp) 

...のようなエラーを得続けます。その列挙型ACCESSは別のヘッダーファイルaccess.hで定義されています。 access.hは、stdafx.hに含まれています。

typedef enum 
{ 
    ACCESS_NONE  = 0, 
    ACCESS_READ  = 1 
} ACCESS; 

ここで何が問題なのかよく分かりません。不一致はどこですか?

答えて

0

これはACCESSの定義ではなく、ClassXaccess1メンバーの位置です。クラスの宣言が二重になっているか、またはある種の不正な(#pragma pack)(.cppをコンパイルすると有効ですが、別のコンパイル時には無効です)。

関連する問題