Visual C++ compilers only one file of two with the same name - by Sergey Shandar citylizard

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


6
0
Sign in
to vote
ID 361228 Comments
Status Closed Workarounds
Type Bug Repros 6
Opened 8/10/2008 6:27:45 PM
Access Restriction Public

Description

If two C++ files in the project have the same name, VC++ compiles only one of them.
Sign in to post a comment.
Posted by mikeocool on 5/25/2010 at 3:31 PM
This issue does not appear to be fixed in Visual Studio 2010. Regardless of how the source code files are structured, all of the compiled .obj files appears to get dumped into the same directory, so if you have a file called \src\Example.cpp and a file called \src\another_namespace\Example.cpp they both seem to get compiled to Example.obj and one overwrites the other.
Posted by Microsoft on 8/14/2008 at 9:59 PM
Hi,

Thanks for your feedback. The issue you are experiencing is by design in Visual Studio 2008. To get around the issue you can rename the file to a different name.

However this should work in the next version of Visual Studio.

Thanks,

VC++ Team
Posted by Microsoft on 8/10/2008 at 9:33 PM
Thanks for your feedback. We are escalating this bug to the product unit who works on that specific feature area. The team will review this issue and make a decision on whether they will fix it or not for the next release.

Thank you,
Visual Studio Product Team
Posted by Microsoft on 8/10/2008 at 9:33 PM
Thanks for your feedback. We are escalating this bug to the product unit who works on that specific feature area. The team will review this issue and make a decision on whether they will fix it or not for the next release.

Thank you,
Visual Studio Product Team