Visual Studio 2013 fatal error C1041 /FS
Solution 1:
I had this problem because different projects in a solution had the same intermediate directory.
Changing
$(Platform)\$(Configuration)\
to
$(Platform)\$(Configuration)\$(ProjectName)\
in
Configuration Properties | General | Intermediate Directory
in each of the projects solved it.
Solution 2:
I agree with PThomasCS.
Firstly I tried to use Microsoft advice /FS (Force Synchronous PDB Writes):
To set this compiler option in the Visual Studio development environment
- Open the project's Property Pages dialog box. For details, see Working with Project Properties.
- Select the C/C++ folder.
- Select the Command Line property page.
- Modify the Additional Options property to include /FS and then choose OK.
but it didn't work.
I noticed that dropbox lock the file. I stopped the synchronization. After that error disappeared. So try to close/stop any program that may lock the files.
Hope this helps.