Huntsman
2010-04-03 23:48:05 UTC
mare.c:8: error: redefinition of ‘subtraction’
mare.c:5: error: previous definition of ‘subtraction’ was here
Mare being the secondary file. The code for the secondary file is:
float division (float e, float f)
{ return (e / f); }
float subtraction (float a, float b)
{ return (a - b); }
float subtraction (float c, float d)
{ return (c - d); }
and the code for the header file is:
float subtraction (float a, float b)
float subtraction (float c, float d);
float division (float e, float f);