I copied an existing project and renamed the folder. Now I get this error when I try to compile the application
debugging information cannot be found
This problem has bothered me for a long time. AnT's anwser is very helpful. The main idea is Don't have any two pdb files have the same name, even they are not in the same directory.
This is my situation: I have tow projects name "FooBar" and "FooBarDll", the first one is an exe, and the second one is a dll. I set both projects Target Name to be "FooBar", so that they will generate "FooBar.exe" and "FooBar.dll" respectively.
Then I set
So I get these files:
Debug\FooBar\FooBar.pdb //Linker pdb
Debug\FooBar.dll
My solution is replacing every "TargetName" with "ProjectName", then I will get:
Debug\FooBar\FooBar.pdb //Linker pdb
Debug\FooBar.dll
Then there is no conflict!
Give C/C++ pdb a suffix may be better, like: "C/C++ -> Output Files -> Program Database File Name" to be "$(IntDir)$(ProjectName)_C.pdb"