Hi All,
I am getting errors like:
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
In FxMathFunctions.h I have:
11: struct FxPoint2d;
12:
13: inline FxInt32 IMin(FxInt32 i1,FxInt32 i2)
14: {
15: if (i2 < i1) i1 = i2;
16: return i1;
17: }
FxInt32 is defined in a header that I am including as:
typedef long FxInt32;
I cant decide by the errors if it says that FxInt32 is being redefined or if the whole function is.
How do I solve this?
UPDATE I added the line numbers above.