I have a class called CONNECTION. Its class declaration is in the file Connection.Hpp. The definitions of its member functions are in the file Connection.Cpp.
In my main file, main.cpp, I #include Connection.Hpp, and make calls to functions that are part of the CONNECTION class. When I compile, I get the errors:
Which pretty much says the function calls I made were not to functions that were linked.Code:main.obj : error LNK2001: unresolved external symbol "public: bool __thiscall CONNECTION::HandleRequest(void)" (?HandleRequest@CONNECTION@@QAE_NXZ) main.obj : error LNK2001: unresolved external symbol "public: bool __thiscall CONNECTION::ReadRequest(void)" (?ReadRequest@CONNECTION@@QAE_NXZ) main.obj : error LNK2001: unresolved external symbol "public: __thiscall CONNECTION::CONNECTION(int,struct sockaddr_in)" (??0CONNECTION@@QAE@HUsockaddr_in@@@Z) Release/SWSBeta.exe : fatal error LNK1120: 3 unresolved externals
I am using VisualC++ 6.0, and both of the Connection.* files have been added. I don't understand why they are unresolved, just because they are called from main. What must I do to tell Connection.hpp that its member functions are all in Connection.cpp?