Software Development
Member Avatar

I have some errors LNK2019 with my homework, but I can't solve it.

My error

Error 7 error LNK2019: unresolved external symbol "void __cdecl input(int * &,int &,class std::basic_ifstream<char,struct std::char_traits<char> …

c++
Software Development
Member Avatar

I have some errors LNK2019 with my homework, but I can't solve it.

My error

Error 7 error LNK2019: unresolved external symbol "void __cdecl input(int * &,int &,class std::basic_ifstream<char,struct std::char_traits<char> …

Topic by Dang_1

There's some evil inconsistency …

In function.h, you declare:

void input(int* &pi, int& n, ifstream &fin);

whereas, in function.cpp you have:

void input(int* &pi,int& n, fstream &fin)

i.e., ifstream vs. …

c++