Linker error

Hello everybody,
When I try to compile I get this error:

In function `main':
[Linker error] undefined reference to `retailPrice(double, double)'
ld returned 1 exit status

I am using DevC++
This is my source code:

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

//function prototype
double retailPrice(double, double);

int main()
{
double wholeSale;
double markupPercent;

cout << "Please enter the wholesale cost of the product:\n";
cin >> wholeSale;
cout << "Please enter the markup percentage:\n";
cin >> markupPercent;
markupPercent /= 100;
cout << fixed << showpoint << setprecision(2);

cout << "The retail price of the product is "<< retailPrice(wholeSale, markupPercent)<< endl;

return 0;
}

//Function retalPrice header
//Accepts values for wholesale cost and markup percentage
//and gives back a value for retail price
double retaiPrice(double num1,double num2)
{
double retail;

retail = num1 + (num1 * num2);

return retail;
}

//Thanks in advance

Typo: Function should be double retailPrice().

1
2
3
4
5
6
7
8
9
double retaiPrice(double num1,double num2)
{
double retail;

retail = num1 + (num1 * num2);

return retail;
}


Return 0;

thanks!
stupid mistake...
Topic archived. No new replies allowed.