I get an error when compiling my source file for the header,
[Linker Error] Undefined reference to 'WinMain@16'
Here is my header code:
#define Pi 3.14159265358979323846
extern double sin( double ); // Sine of an angle
extern double cos( double ); // Cosine of an angle
extern double tan( double ); // Tangent of an angle
extern double sinh( double ); // Hyperbolic Sine of an angle
extern double PowerOf( double, int ); // X to the power of Y
extern double Factorial( double, int ); // Factorial of double value
Here is the beginning of the source file:
#include <stdio.h>
#include <stdlib.h>
#include <trigs.h>
/************************************************** ****************************
The factorial funtion will use a while loop to determine the factorial value of
a number which will be used in the trig loop for series expansion as x/n! etc.
************************************************** *****************************/
double Factorial( double value, int x)
{
if(x == 0) return 1;
else
{
while( x > 1)
{
value = value / x--;
}
}
return value;
}
etc. etc.
Any ideas on why I'm getting a linker error?