I have source code of a Visual Studio C++ project. Project contains cpp and header files of the initial project. Those files are in different folder and subfolders. However the main function exists in the default directory. I want to create a new project and add the code.
However I don't know what exactly I've to do in order to build the project. Firstly I create a empty C++ project. The next step to add .cpp files and .h files. Should I add in the project stdafx files? How can I add the code in subfolders in the new project?
EDIT:I follow instructions of TobiMcNamobi. I add existing items from solution project. Project build all files. However I am receiving an error:
fatal error LNK1561: entry point must be defined
What exactly this error mean? I have checked the following link, it says that maybe it is not clear if the new project is Win32 Project instead of a Console. However I have created an empty project? Should I turn into a Console project?
EDIT2: I add all the dependencies and all files. The problem now is that I am facing the following error:
error LNK2005: "public: static class cv::Mat __cdecl CmSaliencyRC... already defined in .obj