We have a big project in Visual Studio written in both C++ and C# (with more than 8 projects involved). One of the projects is called Ramin_SC and inside this project there is a folder named common which contains some .h and .cpp and These files are called and used by Ramin_SC. I relocated this common folder to another directory outside of the solution directory (Let's say to another Drive). I modified the Additional include directory with a relative path and also changed all the possible configurations in the .vcxproj file of Ramin_SC. Now , when I build Ramin_SC , the new directory for the files is recognized by VS but I get LNK2001 AND LNK2020 errors. Before this relocation the build used to be successful without any errors. These are the erros :
- LNK 2001 : Description :
unresolved external symbol "wchar_t * errorfile_name" (?errorfile_name@@3PA_WA)
. ProjectRamin_SC
. FileSC_Interface
. - LNK 2020 : Description : unresolved token (0A0004D2) "wchar_t * errorfile_name" (?errorfile_name@@3PA_WA). Project
Ramin_SC
. FileSC_Interface
.
In the Additional Library Directories of Linker I specified the path to the location of the common folder. Many people here mentioned that the problem is with a missing library or an incorrect directory. But I don't think that these are applicable in my case.