I am using Visual Studio 2013. I have a file with a main function (file1.cpp). This main function uses a function that is defined in another file (file2.cpp). There is a header file for file2.cpp, but its name is different. So its not called file2.h but hdr2.h. When I build the project I get an unresolved external symbol error for the function that is used in main. The header file is defined in main but it doesn't seem to be compiling the function that is in file2.cpp. Can someone please tell me how to solve this?
Thanks