What did I do wrong?

my compiler is bloodshed c++.
I keep getting this error on my program. I want to know how can I fix it.
Thanks

[Linker error] undefined reference to `getInfile(double (*) [5])'
[Linker error] undefined reference to `printHeading(std::string*)'

here is my code:

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

const int DAYS=7; // Global constants
const int TIME=5;
// function prototypes
void getInfile( double [DAYS][TIME]);
int dayRelease(double [DAYS][TIME], int);
void avgDistance(double [][TIME]);
int maxDistance(double [][TIME], int);
void printHeading(string[]);


int main()
{
string dayNum[DAYS]= { " Sun. ", " Mon. ", " Tues. ", " Wed. ", " Thurs. ", " Fri. ", " Sat. "};
string timeRelease[TIME]= { " 600 ", " 900 ", " 1200 ", " 1500 ", " 1800 "};

double distance[DAYS][TIME]; // 2D array for storing the distance values
int day; // row subscript for distance array
int time; // column subscript for distance array
int max; // subscript for the largest distance in a row

getInfile(distance);
printHeading(dayNum);


system("pause");
}
1
2
getInfile(distance);
printHeading(dayNum);


Those two functions have no definition; either they've never been written, or they've been written but not compiled, or they've been compiled but you're not linking to the compiled object containing them.
ok, So how can I fix it n thanks for responding
Which mistake did you make? Have you actually written code for the functions getInfile and printHeading?
Topic archived. No new replies allowed.