次のようなエラーが表示されます。
FxMathFunctions.h: In function 'FxInt32 IMin(FxInt32, FxInt32)':
FxMathFunctions.h:13: error: redefinition of 'FxInt32 IMin(FxInt32, FxInt32)'
FxMathFunctions.h:15: error: 'FxInt32 IMin(FxInt32, FxInt32)' previously defined here
FxMathFunctions.h には次のものがあります。
11: struct FxPoint2d;
12:
13: inline FxInt32 IMin(FxInt32 i1,FxInt32 i2)
14: {
15: if (i2 < i1) i1 = i2;
16: return i1;
17: }
FxInt32 は、次のように含めているヘッダーで定義されています。
typedef long FxInt32;
FxInt32 が再定義されているか、関数全体が再定義されているかをエラーで判断できません。
これを解決するにはどうすればよいですか?
更新上記の行番号を追加しました。