When declaring a function in my header file:
uchar Cooling_Req(float*, float, Table2D*, float*, float, float);
I receive C1008 and C1007 errors when making.
However, when I move the declaration into the source file, even when put before the #include statement, it work just fine:
preprocessed for working order (function declaration out of header file):
/* 404 */ void Timer_1000ms ( void ) ;
/* 405 */ void ResetCAN ( void ) ;
/* 406 */ void StrokeData ( void ) ;
/* 411 */
/**** FILE 'C:\Users\rozeni1\Documents\SCC\Fan\Sources\strategy.c' */
uchar Cooling_Req ( float * , float , Table2D * , float * , float , float ) ;
/* 17 */
/**** FILE 'strategy.h' */
/* 40 */ float Strategy ( void ) ;
/* 46 */
/**** FILE 'C:\Users\rozeni1\Documents\SCC\Fan\Sources\strategy.c' */
/* 19 */ extern const uchar STRATEGY ;
/* 20 */ extern const uchar COOLANT_I ;
/* 21 */ extern const uchar AC_I ;
preprocessed for non-working (function declaration in header file):
/* 402 */ void Timer_250ms ( void ) ;
/* 403 */ void Timer_500ms ( void ) ;
/* 404 */ void Timer_1000ms ( void ) ;
/* 405 */ void ResetCAN ( void ) ;
/* 406 */ void StrokeData ( void ) ;
/* 411 */
/**** FILE 'C:\Users\rozeni1\Documents\SCC\Fan\Sources\strategy.c' */
/* 16 */
/**** FILE 'strategy.h' */
/* 40 */ float Strategy ( void ) ;
/* 41 */ uchar Cooling_Req ( float * , float , Table2D * , float * , float , float ) ;
/* 46 */
/**** FILE 'C:\Users\rozeni1\Documents\SCC\Fan\Sources\strategy.c' */
/* 17 */ extern const uchar STRATEGY ;
/* 18 */ extern const uchar COOLANT_I ;
/* 19 */ extern const uchar AC_I ;