I’m using Visual Studio 2010 to compile my C++ project, and the linker is barfing on two of my files which have the same name- but they’re in completely different directories. How can I make the linker recognize that they are different files?
Share
I believe the problem comes from the fact that all your .obj files are written to the same folder, and so the outputs from compiling those two source files are colliding. I think there are at least two possible solutions:
I’m not certain about the first option, but for the second, you should be able to right-click the source file in the solution explorer, select “Properties”, and find some configuration setting to over-ride the output (.obj) file created for that source file.