D8036 command line error - not allowed with multiple source files

I worked in a visual studio, and I made a few changes to one of my projects (several changed directories). When I tried to build this project later, I got the following error message:

cl : Command line error D8036: '/Fo.\obj\ms100_r' not allowed with multiple source files 

I do not see how this relates to the fact that I generally changed. I even returned the .vcxproj file back to the previous version and this error still persists. I do not know what causes it. Shouldn't command-line options be controlled by visual studio?

+7
source share
2 answers

had the same problem and realized that I removed the slash at the end:

configuration properties-> c / C ++ β†’ output files-> object file name->

after i returned the slash at the end of the file name everything worked again

+13
source

I had a similar error with / doc. For me, the solution was to change Configuration Properties / C / C ++ / Output Files | XML documentation File name from "$ (TargetPath) .xml" to an empty string.

0
source

All Articles