Hi all. I am trying figure out why the compiler is giving me this error message: error LNK2001: unresolved external symbol "double __cdecl calcWindChill(double,double)" (?calcWindChill@@YANNN@Z) HomeWork3.obj
I've declared, defined , and called the calcWindChill() function. I've obtained the values needed to feed into the function. They're not getting put into it though. But that's an unrelated issue altogether. Or is it? Thanks for any suggestions you can offer.

/*Windchill Calculator*/ 

#include <iostream>
#include <cmath>
using namespace std;

// Function Declarations:
double promptUserTemp( double airTemp );
double promptUserSpeed( double windSpeed );
double calcWindChill( double temp, double speed ); 
//double outputWindChill( double windChill ); // This function is not yet written.

int main()
{
double airTemp = 0.0;
double temp = 0.0;
temp = promptUserTemp( airTemp ); //Call the function promptUserTemp

double windSpeed = 0.0;
double speed = 0.0;
speed = promptUserSpeed( windSpeed ); //Call the function promptUserspeed

double chill = 0.0;
chill = calcWindChill( temp, speed );//Call the function calcWindChill

//Temporary output method. Later I will put it in a separate function:
cout<<"The temperature after caculating the wind chill factor is: "<<chill<<"degrees."<<endl;

system( "pause" );
return 0;
}

double promptUserTemp( double airTemp ) 
{
	cout.setf( ios::fixed );
	cout.setf( ios::showpoint );
    cout.precision( 2 );
	cout<< "Enter the air temperature: "; 
	cin>> airTemp;
	return airTemp;
}

double promptUserSpeed( double windSpeed )
{
    cout.setf( ios::fixed );
	cout.setf( ios::showpoint );
    cout.precision( 2 );
	cout<< "Enter the wind speed: ";
    cin>> windSpeed;
	return windSpeed;
}

double calcwindChill( double temp, double speed)
{
  double windChill = 0.0;
  double wcp1 = 0.0;
  double wcp2 = 0.0;
  double wcp3 = 0.0;
  double wcp4 = 0.0;
  wcp1 = (10 * sqrt(speed));
  wcp2 = (speed + 10.5);
  wcp3 = (33 - temp);
  wcp4 = (((wcp1) - (wcp2)) * (wcp3)) /23.1;
  windChill = (33 - wcp4);
  return windChill;
}
This question has already been answered. Start a new discussion instead.