HELP!

I am rebuilding a very old program. This part is in one of the custom headers. The compiler gives error on line 5: Cannot overload functions distinguished by return type alone. Please point me into the right direction.

1
2
3
4
5
6
7
8
  // utility routines 

#include <windows.h>
 
extern short int round(float f);
extern double sqr(double x);
extern float sqr(float x);
extern long color(int i);
This means there is some other function called round, taking a float parameter, which is in scope, and therefore this function is serving as an overload, which can't be distinguished only by a different return type.

Aceix.
Topic archived. No new replies allowed.