fatal error LNK1120 : 1 unresolved externals

hey guys
i wrote this code and i am gettng this error: fatal error LNK1120 : 1 unresolved externals
this is part of the code, this is where the problem is
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

bool openFile (ifstream & infile);

bool readSurveyFile (ifstream & SurveyFile);

const int MAX_NAMES=1024;

const int MAX_LIKES=8;

int id[MAX_NAMES];

string name[MAX_NAMES];

int LIKES[MAX_NAMES][MAX_LIKES];

int numlikes [MAX_NAMES];

int surveySize;

enum state_t{startrecord,withinidnumber,iddone,firstname,lastname,namedone,likes,whithinlikes,likesdone};

int main (int argc, char ** argv) {

ifstream fin;

bool openf= openFile (fin);

bool parsed=readSurveyFile (fin);

fin.close();

return 0;
}
bool openFile (ifstream & infile) {

char filename[200];

cin>>filename;

infile.open (filename);

if (infile.is_open()) {

}

else{

cout<<"couldn't open the file you entered"<<endl;

return false;}

return true;
}
i dont know what is this error i cant interpret its meaning, i am also getting another error which is :
Error 1 error LNK2019: unresolved external symbol "bool __cdecl readSurveyFile(class std::basic_ifstream<char,struct std::char_traits<char> > &)" (?readSurveyFile@@YA_NAAV?$basic_ifstream@DU?$char_traits@D@std@@@std@@@Z) referenced in function _main problem 1 second attempt.obj

please help me figure it out. thank you in advance
i think i figured it out
i called the function bool surveyfile in main without even writing it outside it :p thanks anyways :)
Topic archived. No new replies allowed.